X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=roojs-ui-debug.js;h=27ca272f8677a4420b92c10d884ae5b2d04755f2;hp=ead11143ef8c55c63d2d58465dbd86cac83370b9;hb=5e20d2d4c06f3b903975ec0a90550d5d9cca8779;hpb=496be84c167be542ac1f25ee37edf832b0438999 diff --git a/roojs-ui-debug.js b/roojs-ui-debug.js index ead11143ef..27ca272f86 100644 --- a/roojs-ui-debug.js +++ b/roojs-ui-debug.js @@ -22298,12 +22298,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;