const xss = require('xss')
export default function (string) {
// xss白名单
const whiteList = Object.assign(xss.whiteList, {
marquee: [],
label: [],
fieldset: [],
legend: [],
blockquote:[]
})
const options = {
whiteList
}
return xss(string, options)
}
xss白名单
最新推荐文章于 2023-11-05 21:04:14 发布