How to Use
npm install xss-clean --save
var restify =var xss =var app = restifyapp/* make sure this comes before any routes */appapp
This will sanitize any data in
req.params. You can also access the API directly if you don't want to use as middleware.
var clean = cleanvar cleaned =// will return "<script></script>"
Testing & Contributing
npm installnpm test
If you want to contribute or come across an issue that you know how to fix, just do it.