summaryrefslogtreecommitdiff
path: root/itjs/it.js
diff options
context:
space:
mode:
Diffstat (limited to 'itjs/it.js')
-rw-r--r--itjs/it.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/itjs/it.js b/itjs/it.js
index 11caa40..7fb02bc 100644
--- a/itjs/it.js
+++ b/itjs/it.js
@@ -25,7 +25,7 @@ function ED()
var variable = arguments[i];
if (typeof variable == "string")
- variable = variable.replace(/&/g, '&amp;').replace(/[<]/g, '&lt;');
+ variable = variable.replace(/&/g, '&amp;').replace(new RegExp("<", "g"), '&lt;');
text += (typeof variable) + " " + variable;
@@ -58,7 +58,7 @@ function ED()
*/
function Q(value)
{
- return typeof value == "undefined" ? "" : value.toString().replace(/&/g, '&amp;').replace(/\"/g, '&quot;').replace(/[<]/g, '&lt;').replace(/>/g, '&gt;');
+ return typeof value == "undefined" ? "" : value.toString().replace(/&/g, '&amp;').replace(/\"/g, '&quot;').replace(new RegExp("<", "g"), '&lt;').replace(/>/g, '&gt;');
}
/**