simple-sanitizer
v0.4.6
Published
A small quick and effective client side javascript html sanitizer.
Downloads
122
Maintainers
Readme
Simple Sanitizer
A small, quick, standalone and effective client side javascript html sanitizer.
A shameless port of ngSanitize to normal javascript, zero dependencies required.
Usage
var safeHTML = sanitizer.sanitizeHTML(dangerousHTML);
You can also sanitize URIs for images, links etc:
var safeUri = sanitizer.sanitizeUri(dangerousUri);
License
MIT, see LICENSE for details.