12 lines
194 B
JavaScript
Raw Permalink Normal View History

2025-04-23 09:34:08 +08:00
// Internal list of HTML entities for escaping.
var escapeMap = {
'&': '&',
'<': '&lt;',
'>': '&gt;',
'"': '&quot;',
"'": '&#x27;',
'`': '&#x60;'
};
module.exports = escapeMap;