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:
now hookEvent is passed only for uponSanitizeAttribute hook.
currently there is misleading example of hook usage, where the beforeSanitizeElements hook is used.
in order to avoid misunderstandings and simplify life for next users of lib, let's correct this mistake.
Summary
this pull request changes hook usage example
Background & Context
now hookEvent is passed only for
uponSanitizeAttribute
hook. currently there is misleading example of hook usage, where thebeforeSanitizeElements
hook is used.in order to avoid misunderstandings and simplify life for next users of lib, let's correct this mistake.