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

sanitize().escape() method is absent #25

Closed
droganov opened this issue Feb 21, 2013 · 5 comments
Closed

sanitize().escape() method is absent #25

droganov opened this issue Feb 21, 2013 · 5 comments

Comments

@droganov
Copy link

Hello,
Node validator has escape mothod

escape()                        //Escape &, <, >, and "

But when I try to call this method under express-validator:

req.sanitize("param_name").escape()

I get an exception:

Object (here comes param value) has no method 'escape'
@ctavan
Copy link
Member

ctavan commented Feb 27, 2013

When did node-validator get the escape method? If you can upgrade the node-validator dependency and add a binding for the escape method I'm happy to merge a pull request.

@droganov
Copy link
Author

Latest validator is 0.4.25 and you're using 0.4.19.

Escape method is listed at https://github.com/chriso/node-validator

Not sure how to make a proper pull request. Should I just edit package.json?

@ctavan ctavan closed this as completed in 4ff8a48 Feb 27, 2013
@ctavan
Copy link
Member

ctavan commented Feb 27, 2013

I've published the upgraded package to npm as v0.3.2

@droganov
Copy link
Author

I've tested the module, escape works fine now. Thank you!

@lock
Copy link

lock bot commented Jun 2, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants