-
-
Notifications
You must be signed in to change notification settings - Fork 623
Use case of sanitize middlewares #781
Copy link
Copy link
Closed
Labels
Description
It's possible to use sanitize methods (trim, normalizeEmail, escape...) in validators :
body('q')
.trim()
I don't understand when sanitize middleware are required :
sanitizeBody('q')
.trim()
These two examples are the same for me.
Someone could explain me ?
Reactions are currently unavailable