What’s the difference between esc_html, esc_attr, esc_html_e, and so on?

sorry if my question is dumb, but I’m really confused…

I got feedback from security guy and he pointed that I should use proper escaping of user input in my code. So I’ve done some research and found escaping functions… But…

What’s the difference between them?
When should I use esc_html and when esc_attr?
And when should I use these functions with _e at the end?

Read more here:: What’s the difference between esc_html, esc_attr, esc_html_e, and so on?

Leave a Reply

Your email address will not be published. Required fields are marked *