|
|
@ -83,7 +83,6 @@ module.exports = { |
|
|
|
let XSS = require('xss'); |
|
|
|
let XSS = require('xss'); |
|
|
|
let CSSFilter = require('cssfilter'); |
|
|
|
let CSSFilter = require('cssfilter'); |
|
|
|
let whiteList = Object.assign({}, require('xss/lib/default').whiteList); |
|
|
|
let whiteList = Object.assign({}, require('xss/lib/default').whiteList); |
|
|
|
whiteList['marquee'] = []; |
|
|
|
|
|
|
|
for (let tag in whiteList) whiteList[tag] = whiteList[tag].concat(['id', 'style', 'class']); |
|
|
|
for (let tag in whiteList) whiteList[tag] = whiteList[tag].concat(['id', 'style', 'class']); |
|
|
|
let xss = new XSS.FilterXSS({ |
|
|
|
let xss = new XSS.FilterXSS({ |
|
|
|
css: { |
|
|
|
css: { |
|
|
|