1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-31 18:15:46 +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

@@ -287,9 +287,9 @@ function Mappings() //{{{
for (var j = 0; j < maps[i].names.length; j++)
{
list += "<tr>";
list += "<td> " + maps[i].names[j].replace(/</g, "&lt;").replace(/>/g, "&gt;") + "</td>"
list += "<td> " + vimperator.util.escapeHTML(maps[i].names[j]) + "</td>"
if (maps[i].rhs)
list += "<td> " + maps[i].rhs.replace(/</g, "&lt;").replace(/>/g, "&gt;") + "</td>"
list += "<td> " + vimperator.util.escapeHTML(maps[i].rhs) + "</td>"
list += "</tr>";
}
}