django-vue3-admin-web/node_modules/xe-utils/unescape.js
2025-10-20 21:21:14 +08:00

21 lines
434 B
JavaScript

var staticEscapeMap = require('./staticEscapeMap')
var helperFormatEscaper = require('./helperFormatEscaper')
var each = require('./each')
var unescapeMap = {}
each(staticEscapeMap, function (item, key) {
unescapeMap[staticEscapeMap[key]] = key
})
/**
* 反转escape
*
* @param {String} str 字符串
* @return {String}
*/
var unescape = helperFormatEscaper(unescapeMap)
module.exports = unescape