1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 10:57:59 +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

@@ -244,8 +244,8 @@ function Buffer() //{{{
[number, title] = items[i][0].split(/:\s+/, 2);
url = items[i][1];
url = url.replace(/>/, "&gt;").replace(/</, "&lt;");
title = title.replace(/>/, "&gt;").replace(/</, "&lt;");
url = vimperator.util.escapeHTML(url);
title = vimperator.util.escapeHTML(title);
list += "<tr><td align=\"right\"> " + number + "</td><td>" + indicator +
"</td><td style=\"width: 250px; max-width: 500px; overflow: hidden;\">" + title +