leizongmin / js-xss

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

When stripIgnoreTagBody is true, onIgnoreTag is nevel called #143

Open steph643 opened 6 years ago

steph643 commented 6 years ago

Using stripIgnoreTagBody=true seems to disable the onIgnoreTag() callback.

I think it would be logical and useful that onIgnoreTag() be called whereas stripIgnoreTagBody is true or not.