wpseek.com
A WordPress-centric search engine for devs and theme authors



esc_html › WordPress Filter Hooks

Since2.8.0
Deprecatedn/a
apply_filters( 'esc_html', $safe_text, $text )
Parameters: (2)
  • () safe_text The text after it has been escaped.
    Required: Yes
  • () text The text prior to being escaped.
    Required: Yes
Defined at:
Codex:

Filters a string cleaned and escaped for output in HTML.

Text passed to esc_html() is stripped of invalid or special characters before output.




Source

return apply_filters( 'esc_html', $safe_text, $text );