sanitize-html

v2.13.1
Clean up user-submitted HTML, preserving allowlisted elements and allowlisted attributes on a per-element basis
html parser sanitizer sanitize

test

npx eslint . && mocha test/test.js
npm i sanitize-html

Metadata

  • MIT
  • Whatever
  • Apostrophe Technologies, Inc.
  • released 10/3/2024

Downloads