Skip to content
This repository was archived by the owner on Jan 7, 2021. It is now read-only.

Commit cf154e4

Browse files
committed
Merge pull request #86 from buglabs/sanitize-oversight
Makes sure & is sanitized first.
2 parents 8d2e94d + 617ebf4 commit cf154e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/sanitize.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
* ' '
1414
*/
1515
var chars = {
16+
'&': '&',
1617
'<': '&lt;',
1718
'>': '&gt;',
1819
'(': '&#40;',
1920
')': '&#41;',
2021
'#': '&#35;',
21-
'&': '&amp;',
2222
'"': '&quot;',
2323
"'": '&apos;'
2424
};

0 commit comments

Comments
 (0)