google-caja

Node wrapper for the Google Caja HTML/CSS sanitizer

npm install google-caja
9 downloads in the last day
30 downloads in the last week
122 downloads in the last month

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

npm loves you