1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 10:47:57 +01:00

add vimperator.util.escapeHTML

This commit is contained in:
Doug Kearns
2007-10-06 01:58:38 +00:00
parent b936238b5e
commit 2d1152cef9
8 changed files with 53 additions and 20 deletions

View File

@@ -406,7 +406,7 @@ const vimperator = (function() //{{{
{
var str = value.toString();
if (typeof str == "string") // can be "undefined"
value = str.replace(/</g, "&lt;").replace(/>/g, "&gt;");
value = vimperator.util.escapeHTML(str);
}
}