Login
From:
How to Allow target="blank" in DOMPurify.sanitize() - LogFetch
(Uncensored)
subscribe
How to Allow target="blank" in DOMPurify.sanitize() - LogFetch
https://logfetch.com/js-allow-target-blank-with-dompurify/
links
backlinks
Roast topics
Find topics
Find it!
DOMPurify removes target="_blank" attributes during sanitization, but we can use DOMPurify hooks to allow this target attribute.