DEV Community

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

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