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!
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!