leizongmin / js-xss

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

Cannot create xss instance with options ^1.0.14 #274

Open quoctienkt opened 1 year ago

quoctienkt commented 1 year ago

Reference: https://www.npmjs.com/package/xss/v/1.0.14?activeTab=readme From document, we can create xss instance with myxss = new xss.FilterXSS(options?), but from v1.0.14, we only have FilterXSS(html, options?) I made a workaround by downgrade to v1.0.6, this is to inform a bug or document not yet updated!