| ▲ | evilpie 8 hours ago | |
You aren't reading it right.
This Sanitizer will allow everything by default, but setHTML will still block elements/attributes that can lead to XSS.You might want something like:
This will replace <h1> elements with their children (i.e. text in this case), but disallow all other elements and attributes. | ||