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



esc_xml › WordPress Filter Hooks

Since5.5.0
Deprecatedn/a
apply_filters( 'esc_xml', $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 XML.

Text passed to esc_xml() is stripped of invalid or special characters before output. HTML named character references are converted to their equivalent code points.




Source

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