xss

v1.0.15
Sanitize untrusted HTML (to prevent XSS) with a configuration specified by a Whitelist
sanitization xss sanitize sanitisation input security escape encode filter and 5 more...

lint

eslint lib/**

test

export DEBUG=xss:* && mocha -t 5000

test-cov

nyc --reporter=lcov mocha --exit "test/*.js" && nyc report

coveralls

cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js

build

./bin/build

prepublish

npm run test && npm run build
npm i xss

Metadata

  • MIT
  • >= 0.10.0
  • Zongmin Lei
  • released 3/3/2024

Downloads

Maintainers