htmlsanitize
v0.1.15
Published
HTML Sanitizer for the client
Downloads
5,859
Maintainers
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