htmlsanitize

HTML Sanitizer for the client

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
htmlsanitize
010.1.155 years ago5 years agoMinified + gzip package size for htmlsanitize in KB

Readme

HTML Sanitize
HTML sanitizer for the browser originally extracted from Angular ngSanitize function

Install

npm install htmlsanitize

Usage

const sanitize = require('htmlsanitize');

sanitize('<div>Hello world!</div><script>alert("booh!")</script>') // <div>Hello world!</div>

License

MIT