From b73d76cf6f76c117bd6ad2f67d3f7703529e57fd Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Fri, 2 Nov 2007 08:11:01 +0000 Subject: [PATCH] specify the "g" flag to all replace calls in escapeHTML --- content/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/util.js b/content/util.js index 495014e2..25a8fe2b 100644 --- a/content/util.js +++ b/content/util.js @@ -35,7 +35,7 @@ vimperator.util = { // var e = window.content.document.createElement("div"); // e.appendChild(window.content.document.createTextNode(str)); // return e.innerHTML; - return str.replace("&", "&").replace("<", "<").replace(">", ">"); + return str.replace("&", "&", "g").replace("<", "<", "g").replace(">", ">", "g"); }, // TODO: use :highlight color groups