可以将此代码简化为单个作业吗?这三个变量是我从前端收到的输入。我正在使用xss
Node.js 中的模块。
var clientname = xss(req.body.clientName, {
whiteList: [],
stripIgnoreTag: true,
stripIgnoreTagBody: ['script']
});
var clientnumber = xss(req.body.clientNumber, {
whiteList: [],
stripIgnoreTag: true,
stripIgnoreTagBody: ['script']
});
var clientaddress = xss(req.body.clientAddress, {
whiteList: [],
stripIgnoreTag: true,
stripIgnoreTagBody: ['script']
});