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

fix: add `allowList` to types #261

Closed metonym closed 1 year ago

metonym commented 2 years ago

249 added allowList as an alias to whiteList. However, it's absent from IFilterXSSOptions.

This PR adds the allowList property to the TypeScript definitions.

leizongmin commented 1 year ago

Hi @metonym , I have published a new version xss@1.0.14 that includes this PR.

metonym commented 1 year ago

Thank you!