DEV Community

Discussion on: Good Practices: how to sanitize, validate and escape in PHP [3 methods]

Collapse
 
oxk4r01 profile image
Óscar

'As per the validation of the data, there are several components that can be used even during the escaping phase.'
Could you elaborate this, please?
Good article.

Collapse
 
anastasionico profile image
anastasionico

Hi Oscar, thanks a lot for your comment.
Nothing really, what I meant is that there are components like the ones that I listed that escape data automatically.
although, I would still use htmlentities() is many of the cases.
110% if I am working on core PHP rather than PHP frameworks