diff options
| author | Phil Crosby | 2012-05-29 16:52:18 -0700 |
|---|---|---|
| committer | Phil Crosby | 2012-05-29 16:52:18 -0700 |
| commit | 5180f2108777b50aefebdf0167b0a1c605bb784e (patch) | |
| tree | 6e6315c1bd984cdccb9364686994de8d48887283 /background_page.html | |
| parent | 4f7d314135793bf315304d2663df2144441dc33a (diff) | |
| download | vimium-5180f2108777b50aefebdf0167b0a1c605bb784e.tar.bz2 | |
Use a less wasteful escapeHtml function
Diffstat (limited to 'background_page.html')
| -rw-r--r-- | background_page.html | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/background_page.html b/background_page.html index 9b5487c3..a1af1396 100644 --- a/background_page.html +++ b/background_page.html @@ -198,7 +198,7 @@ if (showUnboundCommands || commandsToKey[command]) { html.push( "<tr class='vimiumReset " + (advancedCommands.indexOf(command) >= 0 ? "advanced" : "") + "'>", - "<td class='vimiumReset'>", escapeHtml(bindings), "</td>", + "<td class='vimiumReset'>", utils.escapeHtml(bindings), "</td>", "<td class='vimiumReset'>:</td><td class='vimiumReset'>", availableCommands[command].description); if (showCommandNames) @@ -210,8 +210,6 @@ return html.join("\n"); } - function escapeHtml(string) { return string.replace(/</g, "<").replace(/>/g, ">"); } - /* * Fetches the contents of a file bundled with this extension. */ |
