DOMPurify - a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. DOMPurify works with a secure default, but offers a lot of configurability and hooks. Demo:
This issue proposes a bug with the use of DOMpurify.sanitize() in versions 3.0.2 and 3.0.3
The issue stems from the use of DOMpurify.sanitize() in versions 3.0.2 and 3.0.3. An Uncaught ReferenceError appears in Chrome DevTools (Chrome v113.0.5672.137) and blocks the use of sanitize(). The issue seems to be related to the clone(object) function, with the error arising due to the use of entries(object). This issue does not present itself in version 2.4.5.
Valid form html is passed to sanitize()
No string is returned from sanitize()
Chrome DevTools Uncaught ReferenceError
Invalid function clone(object) from 3.0.2 and 3.0.3
This issue proposes a bug with the use of DOMpurify.sanitize() in versions 3.0.2 and 3.0.3
The issue stems from the use of DOMpurify.sanitize() in versions 3.0.2 and 3.0.3. An Uncaught ReferenceError appears in Chrome DevTools (Chrome v113.0.5672.137) and blocks the use of sanitize(). The issue seems to be related to the clone(object) function, with the error arising due to the use of entries(object). This issue does not present itself in version 2.4.5.
Valid form html is passed to sanitize() No string is returned from sanitize()
Chrome DevTools Uncaught ReferenceError
Invalid function clone(object) from 3.0.2 and 3.0.3
Valid function clone(object) from 2.4.5