js-xss

Sanitize untrusted HTML (to prevent XSS) with a configuration specified by a Whitelist

sanitizationxsssanitizesanitisationinputsecurityescapeencodefiltervalidatorhtmlinjectionwhitelist

http://jsxss.com