sanitize-html

v1.18.2
Clean up user-submitted HTML, preserving whitelisted elements and whitelisted attributes on a per-element basis
html parser sanitizer html sanitizer apostrophe

test

npm run prepublishOnly && mocha test/test.js

build

make clean && make all && npm run prepare && browserify dist/index.js > dist/sanitize-html.js --standalone 'sanitizeHtml'

minify

npm run build && uglifyjs dist/sanitize-html.js > dist/sanitize-html.min.js

prepare

true

prepublishOnly

make clean && npm run minify

Metadata

  • MIT
  • Whatever
  • P'unk Avenue LLC
  • released 2/20/2018

Downloads