X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=roojs-debug.js;h=047cba8461dd3051c3f04ca26f242d1157466c89;hp=3a57b8d57a6d30935c964d7fcda5d75f7f7ed661;hb=5e20d2d4c06f3b903975ec0a90550d5d9cca8779;hpb=496be84c167be542ac1f25ee37edf832b0438999 diff --git a/roojs-debug.js b/roojs-debug.js index 3a57b8d57a..047cba8461 100644 --- a/roojs-debug.js +++ b/roojs-debug.js @@ -46790,12 +46790,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;