2021-12-07 13:18:08 -05:00

12 lines
194 B
JavaScript

// Internal list of HTML entities for escaping.
var escapeMap = {
'&': '&',
'<': '&lt;',
'>': '&gt;',
'"': '&quot;',
"'": '&#x27;',
'`': '&#x60;'
};
module.exports = escapeMap;