Reputation: 247
Why should we use require('body-parser').urlencode
in my node.js or express app? Does it prevent XSS? Im using it in my app and I don't know how it works.
Upvotes: 0
Views: 716
Reputation: 146094
No, it will only handle the decoding. Have a look at lusca and npm modules about "xss" for other candidates.
Upvotes: 1