diff options
Diffstat (limited to 'itjs')
-rw-r--r-- | itjs/it.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -25,7 +25,7 @@ function ED() var variable = arguments[i]; if (typeof variable == "string") - variable = variable.replace(/&/g, '&').replace(/</g, '<'); + variable = variable.replace(/&/g, '&').replace(/[<]/g, '<'); text += (typeof variable) + " " + variable; @@ -48,7 +48,7 @@ function ED() text += "\n"; } - element.innerHTML += '<pre style="background-color:#FEE; margin:0">' + text + '</pre>'; + element.innerHTML += '<pre style="background-color:#FEE; margin:0">' + text + '<\/pre>'; } } @@ -58,7 +58,7 @@ function ED() */ function Q(value) { - return typeof value == "undefined" ? "" : value.toString().replace(/&/g, '&').replace(/"/g, '"').replace(/</g, '<').replace(/>/g, '>'); + return typeof value == "undefined" ? "" : value.toString().replace(/&/g, '&').replace(/\"/g, '"').replace(/[<]/g, '<').replace(/>/g, '>'); } /** |