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

Commit 8504b1b

Browse files
committed
Fixes another issue when sanitizing values.
We need to sanitize & and # first than any other character.
1 parent 3e6868b commit 8504b1b

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
@@ -14,11 +14,11 @@
1414
*/
1515
var chars = {
1616
'&': '&',
17+
'#': '#',
1718
'<': '&lt;',
1819
'>': '&gt;',
1920
'(': '&#40;',
2021
')': '&#41;',
21-
'#': '&#35;',
2222
'"': '&quot;',
2323
"'": '&apos;'
2424
};

0 commit comments

Comments
 (0)