Files
毛财君 197b38ca6f 1
2023-07-06 17:37:33 +08:00

14 lines
310 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
var staticEscapeMap = require('./staticEscapeMap')
var helperFormatEscaper = require('./helperFormatEscaper')
/**
* 转义HTML字符串替换&, <, >, ", ', `字符
*
* @param {String} str 字符串
* @return {String}
*/
var escape = helperFormatEscaper(staticEscapeMap)
module.exports = escape