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

How to see what tags are removed? #284

Open Thomas-1985 opened 9 months ago

Thomas-1985 commented 9 months ago

Hi,

Is there a way and if so how to see what attributes have been removed/escaped from the input string? I am thinking of a removedElements property or similar. I need this functionality to build up an error array that has all the elements that are forbidden and were removed/escaped from the input data.

Best, Thomas