From 5180f2108777b50aefebdf0167b0a1c605bb784e Mon Sep 17 00:00:00 2001 From: Phil Crosby Date: Tue, 29 May 2012 16:52:18 -0700 Subject: Use a less wasteful escapeHtml function --- background_page.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'background_page.html') 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( "", - "", escapeHtml(bindings), "", + "", utils.escapeHtml(bindings), "", ":", availableCommands[command].description); if (showCommandNames) @@ -210,8 +210,6 @@ return html.join("\n"); } - function escapeHtml(string) { return string.replace(//g, ">"); } - /* * Fetches the contents of a file bundled with this extension. */ -- cgit v1.2.3