Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added tip for users of Sails.js and other express-based frameworks #220

Merged
merged 1 commit into from
Sep 8, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ var str = sanitize('&lt;a&gt;').entityDecode(); //'<a>'

Often it's more desirable to check or automatically sanitize parameters by name (rather than the actual string). See [this gist](https://gist.github.com/752126) for instructions on binding the library to the `request` prototype.

If you are using the [express.js framework](https://github.com/visionmedia/express) you can use the [express-validator middleware](https://github.com/ctavan/express-validator) to seamlessly integrate node-validator.
If you are using the [express.js framework](https://github.com/visionmedia/express) (or an Express-based framework like [Sails.js](https://github.com/balderdashy/sails) or [Compound](https://github.com/1602/compound)) you can use the [express-validator middleware](https://github.com/ctavan/express-validator) to seamlessly integrate node-validator.

Example `http://localhost:8080/?zip=12345&foo=1&textarea=large_string`

Expand Down