This repository was archived by the owner on Nov 8, 2024. It is now read-only.
v2.0.0
Replaced the markup sanitization library with dompurify (dropped the sanitize dependency).
BREAKING CHANGE
- make options.sanitize default OFF
- make options.sanitize a function instead of a boolean
- use jsdom in tests (for dompurify to work)
Bundlers should be able to tree-shake the dompurify out when the
exported sanitize function is never used by the app.