I am using https://github.com/ctavan/express-validator specifically the sanitize(‘item’).escape() method. I would like to allow single quotes. Is there a way to whitelist the character?
You could try using whitelist
method.
I am using https://github.com/ctavan/express-validator specifically the sanitize(‘item’).escape() method. I would like to allow single quotes. Is there a way to whitelist the character?
You could try using whitelist
method.