leizongmin / js-xss

Sanitize untrusted HTML (to prevent XSS) with a configuration specified by a Whitelist
http://jsxss.com
Other
5.16k stars 633 forks source link

单纯一份JS,如何设置css 为false? #248

Open AceChen1 opened 2 years ago

AceChen1 commented 2 years ago

如果是es5/6 可以直接这样调用: myxss = new xss.FilterXSS({ css: false, });

但是如果只是单纯的js, 如何在filterXSS 里设置css 为false ? var html = filterXSS(' Githubissues.

  • Githubissues is a development platform for aggregating issues.