google-caja
Version:
Node wrapper for the Google Caja HTML/CSS sanitizer
14 lines (8 loc) • 372 B
Markdown
# node-caja-sanitizer
Port of the google caja html sanitizer library.
## Use
Require the library and go
var sanitize = require('html-css-sanitizer').sanitize;
var result = sanitize('test<script>console.log("hi there");</script>');
# More info
[https://code.google.com/p/google-caja/wiki/JsHtmlSanitizer](https://code.google.com/p/google-caja/wiki/JsHtmlSanitizer)