xss
is a module used to filter input from users to prevent XSS attacks.
(What is XSS attack?)
Project Homepage: http://jsxss.com
Try Online: http://jsxss.com/en/try.html
- Specifies HTML tags and their attributes allowed with whitelist
- Handle any tags or attributes using custom function.
- the xss module: 22.53 MB/s
xss()
function from modulevalidator@0.3.7
: 6.9 MB/s
For test code please refer to benchmark
directory.
- nodeclub - A Node.js bbs using MongoDB - https://github.com/cnodejs/nodeclub
- cnpmjs.org - Private npm registry and web for Enterprise - https://github.com/cnpm/cnpmjs.org