1
This commit is contained in:
13
20220330_Vote/Ewide.Web.Entry/wwwroot/lib/xe-utils/escape.js
Normal file
13
20220330_Vote/Ewide.Web.Entry/wwwroot/lib/xe-utils/escape.js
Normal file
@@ -0,0 +1,13 @@
|
||||
var staticEscapeMap = require('./staticEscapeMap')
|
||||
|
||||
var helperFormatEscaper = require('./helperFormatEscaper')
|
||||
|
||||
/**
|
||||
* 转义HTML字符串,替换&, <, >, ", ', `字符
|
||||
*
|
||||
* @param {String} str 字符串
|
||||
* @return {String}
|
||||
*/
|
||||
var escape = helperFormatEscaper(staticEscapeMap)
|
||||
|
||||
module.exports = escape
|
||||
Reference in New Issue
Block a user