Skip to content

Commit

Permalink
Merge pull request #220 from mikermcneil/patch-1
Browse files Browse the repository at this point in the history
Added tip for users of Sails.js and other express-based frameworks
  • Loading branch information
chriso committed Sep 8, 2013
2 parents ae76b88 + f8f6d56 commit e5f23b2
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit e5f23b2

Please sign in to comment.