mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 17:27:57 +01:00
specify the "g" flag to all replace calls in escapeHTML
This commit is contained in:
@@ -35,7 +35,7 @@ vimperator.util = {
|
|||||||
// var e = window.content.document.createElement("div");
|
// var e = window.content.document.createElement("div");
|
||||||
// e.appendChild(window.content.document.createTextNode(str));
|
// e.appendChild(window.content.document.createTextNode(str));
|
||||||
// return e.innerHTML;
|
// return e.innerHTML;
|
||||||
return str.replace("&", "&").replace("<", "<").replace(">", ">");
|
return str.replace("&", "&", "g").replace("<", "<", "g").replace(">", ">", "g");
|
||||||
},
|
},
|
||||||
|
|
||||||
// TODO: use :highlight color groups
|
// TODO: use :highlight color groups
|
||||||
|
|||||||
Reference in New Issue
Block a user