Closed schu34 closed 2 years ago
@leizongmin Thanks for merging! Any idea when the next release will go out?
@leizongmin Hope you are doing well Any idea when the next release will go out?
@schu34 @yyandapalli I have just publish a new version xss@1.0.11
that includes this change.
Thank you very much, highly appreciate
Hi @leizongmin, My team is trying to use this new version of xss (1.0.11) and getting below error with this new version:
file.ts:27:25 - error TS2339: Property 'escapeAttrValue' does not exist on type '(html: string, options?: IFilterXSSOptions) => string'.
27 ? ${name}="${xss.escapeAttrValue(value)}"
file.ts:32:7 - error TS2339: Property 'filterXSS' does not exist on type '(html: string, options?: IFilterXSSOptions) => string'.
**32 xss.filterXSS(dangerousHTML, makeXssOptions());**
- - - - - -
Any idea on why these errors are coming? Is it because of the changes done in xss.d.ts?
Any guidance is much appreciated
Never mind, ignore this We had to change the import as below to fix this: import * as xss from "xss"
addresses #219