by panzi · 3y ago · 0 comments
Yeah, that article really shouldn't imply that sanitization is "that easy". It does at least mention https://github.com/cure53/DOMPurify at the end but it should LOUDLY argue against attempting to write this particular thing yourself and promote that exclusively in my opinion.
Filed an issue about this here: https://github.com/phuocng/html-dom/issues/281
https://developer.mozilla.org/en-US/docs/Web/API/HTML_Saniti...