このコードを単一の割り当てに簡略化できますか? 3 つの変数は、フロントエンドから受け取る入力です。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']
});