mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 13:27:58 +01:00
replace & with the HTML entity 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(/>/, ">");
|
||||
return str.replace("&", "&").replace("<", "<").replace(">", ">");
|
||||
},
|
||||
|
||||
// TODO: use :highlight color groups
|
||||
|
||||
Reference in New Issue
Block a user