src/app/storymaps/tpl/ui/StoryText.js
/*
		 * Prepare all content that come from the rich text editor for display
		 * (entry content)
		 */
Prepare all content that come from the rich text editor for display
(entry content)
Prepare all content that come from the rich text editor for display ( entry content )
function prepareEditorContent(str)
		{
			var str2 = str.replace(/(?!>)(&nbsp;)(?!<\/)/g, ' ');
			str2 = $(str2);
			str2.find('.description > *').each(function(i, elem){
				var $elem = $(elem);
				if ( $elem.html() != "&nbsp;" )
					$elem.attr("tabindex", "0");
			});
			return str2;
		}
function prepareEditorContent ( str ) { var str2 = str . replace ( / (?!>)(&nbsp;)(?!<\/) / g , ' ' ) ; str2 = $ ( str2 ) ; str2 . find ( '.description > *' ) . each ( function ( i , elem ) { var $elem = $ ( elem ) ; if ( $elem . html ( ) != "&nbsp;" ) $elem . attr ( "tabindex" , "0" ) ; } ) ; return str2 ; }
Prepare all content that come from the rich text editor for display
 (entry content)
Prepare all content that come from the rich text editor for display ( entry content )
// Replace &nbsp; by a space space is not the only character of a tag
 //  i.e. <p>&nbsp;<p> or <p class="foo">&nbsp;</p> is not changed but all others &nbsp; are replaced by a space
 // Add tabindex to not empty elements
