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

Features
Reference
Benchmark (for references only)
They are using xss module
Install
NPM
Bower
Usages
On Node.js
On Browser
Command Line Tool
Process File
Active Test
Custom filter rules
Whitelist
Customize the handler function for matched tags
Customize the handler function for attributes of matched tags
Customize the handler function for tags not in the whitelist
Customize the handler function for attributes not in the whitelist
Customize escaping function for HTML
Customize escaping function for value of attributes
Customize CSS filter
Quick Start
Examples
Allow attributes of whitelist tags start with data-
data-Allow tags start with x-
x-Parse images in HTML
Filter out HTML tags (keeps only plain text)
License
Last updated