From 977b30850c02c90227f48f5bf89c4552adccbe92 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 5 Nov 2009 16:20:21 +0000 Subject: new IE6 workaround attempt --- itjs/it.js | 4 ++-- 1 file 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, '&').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, '>'); } /** -- cgit v1.2.3