1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 15:27:58 +01:00

specify the "g" flag to all replace calls in escapeHTML

This commit is contained in:
Doug Kearns
2007-11-02 08:11:01 +00:00
parent 463f6ea748
commit b73d76cf6f

View File

@@ -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("&", "&amp;").replace("<", "&lt;").replace(">", "&gt;");
return str.replace("&", "&amp;", "g").replace("<", "&lt;", "g").replace(">", "&gt;", "g");
},
// TODO: use :highlight color groups