You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
var staticEscapeMap = require('./staticEscapeMap')
|
|
|
|
var helperFormatEscaper = require('./helperFormatEscaper')
|
|
|
|
/**
|
|
* 转义HTML字符串,替换&, <, >, ", ', `字符
|
|
*
|
|
* @param {String} str 字符串
|
|
* @return {String}
|
|
*/
|
|
var escape = helperFormatEscaper(staticEscapeMap)
|
|
|
|
module.exports = escape
|
|
|