gumbo-sanitize
Gumbo Sanitize is a loose port of the Ruby Sanitize library by Ryan Grove based on Google's Gumbo parser. This module differs from Sanitize.js in that it only supports nodejs and a subset of the Ruby Sanitize API.
Install
npm install --save gumbo-sanitize
Usage
var sanitize = ;console;// prints <img>
Alternatively, you may also use the Sanitize
class directly:
var Sanitize = ;var s = SanitizeRELAXED;console;
Documentation
For now, please see the source code for documentation. Open to contributions :)
License
MIT