mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 02:12:32 +02:00
replace & with the HTML entity in escapeHTML
This commit is contained in:
1 parent
c2a02ccd6d
commit
d192304759
1 file changed
+1
-1
+1
-1
@@ -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(/>/, ">");
|
||||
return str.replace("&", "&").replace("<", "<").replace(">", ">");
|
||||
},
|
||||
|
||||
// TODO: use :highlight color groups
|
||||
|
||||
Reference in new issue
Block a user