Changeset 1026
- Timestamp:
- 2007-10-16 04:36:44 (12 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/branches/versions/2.5.x/editor/_source/internals/fckxhtml.js
r986 r1026 383 383 var val = item.nodeValue ; 384 384 if ( item.nodeType == 3 && i == 0 ) 385 node.appendChild( FCKXHtml.XML.createTextNode( FCKXHtml._AppendSpecialItem( '\r\n' + val ) ) ) ; 385 { 386 // We shouldn't put the plain text value of the text node directly into HTML. (See #1414) 387 var dummyNode = document.createElement( 'pre' ) ; 388 dummyNode.appendChild( document.createTextNode( val ) ) ; 389 node.appendChild( FCKXHtml.XML.createTextNode( FCKXHtml._AppendSpecialItem( '\r\n' + dummyNode.innerHTML ) ) ) ; 390 } 386 391 else 387 392 FCKXHtml._AppendNode( node, item ) ;