Skip to main content
Tweeted twitter.com/StackWordPress/status/1071147459915714565
code needs to be formatted
Source Link
Howdy_McGee
  • 20.8k
  • 24
  • 91
  • 175

Sorry if my question is dumb, but I’m really confused...

I got feedback from security guy and he pointed out that I should use proper escaping of user input in my code. So I’veI'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?

Sorry if my question is dumb, but I’m really confused...

I got feedback from security guy and he pointed out 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?

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

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?

sorrySorry if my question is dumb, but I’m really confused...

I got feedback from security guy and he pointed out 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_htmlesc_html() and when esc_attresc_attr()? And when should I use these functions with _e_e() at the end?

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?

Sorry if my question is dumb, but I’m really confused...

I got feedback from security guy and he pointed out 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?

Source Link
baldrick
  • 241
  • 1
  • 2
  • 7

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?