X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=Roo%2Fhtmleditor%2FTidyWriter.js;h=34a6b34c0846d951cc7318c6c0cc6ecd008c3cd4;hp=9db08abc722c7924b80ae97f520d7e1ce0790318;hb=5e20d2d4c06f3b903975ec0a90550d5d9cca8779;hpb=496be84c167be542ac1f25ee37edf832b0438999 diff --git a/Roo/htmleditor/TidyWriter.js b/Roo/htmleditor/TidyWriter.js index 9db08abc72..34a6b34c08 100644 --- a/Roo/htmleditor/TidyWriter.js +++ b/Roo/htmleditor/TidyWriter.js @@ -186,12 +186,14 @@ Roo.htmleditor.TidyWriter.prototype = { * @param {String} text String to write out. * @param {Boolean} raw Optional raw state if true the contents wont get encoded. */ - text: function(text, node) + text: function(in_text, node) { // if not in whitespace critical - if (text.length < 1) { + if (in_text.length < 1) { return; } + var text = new XMLSerializer().serializeToString(document.createTextNode(in_text)); // escape it properly? + if (this.in_pre) { this.html[this.html.length] = text; return;