Last active
April 15, 2021 18:41
-
-
Save lydemann/21eb094e631739b5443862804549ae8c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const escaped = custompolicy1.createHTML('<img src=x onerror=alert(1)>'); | |
| console.log(escaped instanceof TrustedHTML); // true | |
| el.innerHTML = escaped; // '<img src=x onerror=alert(1)>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment