mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 15:37:59 +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");
|
||||
// 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
|
||||
|
||||
Reference in New Issue
Block a user