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

fix: problem with not closed tag #262

Closed slawiko closed 2 years ago

slawiko commented 2 years ago

This PR fixes the issue when the tag does not have > in the end.

In case when we did not reach > and current position is in the end of HTML - we do the same as if we would find closing bracket.

slawiko commented 2 years ago

@leizongmin kindly asking you to take a look on this PR :)

leizongmin commented 2 years ago

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