How do you use esc_html for form inputs?
-
Have a search form field that I want to make sure is safe to use.
How do I incorporate using esc_html?
I’ve tried using:
$string = esc_html($string);
But it’s causing a problem.
I probably should note that the string ends up being part of the header url.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How do you use esc_html for form inputs?’ is closed to new replies.