diff options
-rw-r--r-- | itjs/it.js | 4 |
1 files changed, 2 insertions, 2 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(new RegExp("<", "g"), '<'); text += (typeof variable) + " " + variable; @@ -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(new RegExp("<", "g"), '<').replace(/>/g, '>'); } /** |