Optimize escape() by not needlessly escaping the / character

Ref. #18.


Former-commit-id: 82a29019daa15c83cb2159685ca5d575265cd902
This commit is contained in:
Mathias Bynens
2012-05-29 15:49:11 +02:00
parent e0fba5cb51
commit c1860d30d6
2 changed files with 2 additions and 3 deletions

View File

@@ -2746,8 +2746,7 @@
.replace(/&/g, '&')
.replace(/</g, '&lt;')
.replace(/"/g, '&quot;')
.replace(/'/g, '&#x27;')
.replace(/\//g,'&#x2F;');
.replace(/'/g, '&#x27;');
}
/**