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 ?
It's possible to use sanitize methods (trim, normalizeEmail, escape...) in validators :
I don't understand when sanitize middleware are required :
These two examples are the same for me.
Someone could explain me ?