Skip to content
This repository was archived by the owner on Nov 8, 2024. It is now read-only.

v2.0.0

Choose a tag to compare

@opichals opichals released this 03 May 08:32
0e97a19

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.