-
-
Save bananabr/48583ff2db0c2281523108f61dfa5569 to your computer and use it in GitHub Desktop.
This file contains 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
let div = document.createElement('div'); | |
const html='<some></non sanitized=1></html>'; | |
const sanitized = DOMPurify.sanitize(html); | |
div.innerHTML = sanitized; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment