My way of escaping and sanitizing HTML.
// npm install escape_escape_escape
var E = require("escape_escape_escape").Sanitize.html;
E("The <strong>brave</strong> and the <b>bold</b>.");
Combine open-source packages with your private code and publish to a private registry behind the firewall. npm ♥ enterprise developers
how? learn more