rem: sXHTML = sXHTML.substr( 7, sXHTML.length - 15 ).trim() ; 
add: sXHTML = sXHTML.substr( 7, sXHTML.length - 15 ).Trim() ; 
context: FCKXHtml.GetXHTML = function( node, includeNode, format ){	FCKXHtmlEntities.Initialize() ;		// Save the current IsDirty state. The XHTML processor may change the	// original HTML, dirtying it.	var bIsDirty = FCK.IsDirty() ;		this._CreateNode = FCKConfig.ForceStrongEm ? FCKXHtml_CreateNode_StrongEm : FCKXHtml_CreateNode_Normal ;	// Special blocks are blocks of content that remain untouched during the	// process. It is used for SCRIPTs and STYLEs.	FCKXHtml.SpecialBlocks = new Array() ;	// Create the XML DOMDocument object.	this.XML = FCKTools.CreateXmlObject( 'DOMDocument' ) ;	// Add a root element that holds all child nodes.	this.MainNode = this.XML.appendChild( this.XML.createElement( 'xhtml' ) ) ;	FCKXHtml.CurrentJobNum++ ;	if ( includeNode )		this._AppendNode( this.MainNode, node ) ;	else		this._AppendChildNodes( this.MainNode, node, false ) ;	// Get the resulting XHTML as a string.	var sXHTML = this._GetMainXmlString() ;	this.XML = null ;		// Strip the "XHTML" root node.	sXHTML = sXHTML.substr( 7, sXHTML.length - 15 ).trim() ;		// Remove the trailing <br> added by Gecko.	if ( FCKBrowserInfo.IsGecko )		sXHTML = sXHTML.replace( /<br\/>$/, '' ) ;	// Add a space in the tags with no closing tags, like <br/> -> <br />	sXHTML = sXHTML.replace( FCKRegexLib.SpaceNoClose, ' />');	if ( FCKConfig.ForceSimpleAmpersand )		sXHTML = sXHTML.replace( FCKRegexLib.ForceSimpleAmpersand, '&' ) ;	if ( format )		sXHTML = FCKCodeFormatter.Format( sXHTML ) ;	// Now we put back the SpecialBlocks contents.	for ( var i = 0 ; i < FCKXHtml.SpecialBlocks.length ; i++ )	{		var oRegex = new RegExp( '___FCKsi___' + i ) ;		sXHTML = sXHTML.replace( oRegex, FCKXHtml.SpecialBlocks[i] ) ;	}		// Replace entities marker with the ampersand.	sXHTML = sXHTML.replace( FCKRegexLib.GeckoEntitiesMarker, '&' ) ;	// Restore the IsDirty state if it was not dirty.	if ( !bIsDirty )		FCK.ResetIsDirty() ;	return sXHTML}
meta: 1235	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1235/e3f23043ed288727da2247e5542491d451663929/fckxhtml.js/buggy/reference/library/src/webapp/editor/FCKeditor/editor/_source/internals/fckxhtml.js