Port of the google caja html sanitizer library.
Require the library and go
var sanitize = require('html-css-sanitizer').sanitize;
var result = sanitize('test<script>console.log("hi there");</script>');
Combine open-source packages with your private code and publish to a private registry behind the firewall. npm ♥ enterprise developers
how? learn more