Don't escape slash; it's unnecessary

Fixes #1444.

Test Plan: grunt fasttest
This commit is contained in:
Ben Alpert
2014-04-28 23:22:03 -03:00
parent b9e215d169
commit 0d3622714c
2 changed files with 2 additions and 4 deletions
@@ -46,7 +46,6 @@ describe('escapeTextForBrowser', function() {
expect(escaped).not.toContain('<');
expect(escaped).not.toContain('>');
expect(escaped).not.toContain('\'');
expect(escaped).not.toContain('/');
expect(escaped).not.toContain('\"');
escaped = escapeTextForBrowser('&');
+2 -3
View File
@@ -24,11 +24,10 @@ var ESCAPE_LOOKUP = {
">": "&gt;",
"<": "&lt;",
"\"": "&quot;",
"'": "&#x27;",
"/": "&#x2f;"
"'": "&#x27;"
};
var ESCAPE_REGEX = /[&><"'\/]/g;
var ESCAPE_REGEX = /[&><"']/g;
function escaper(match) {
return ESCAPE_LOOKUP[match];