Filters a string cleaned and escaped for output in XML.
Description
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.
4784*4785* @since 5.5.04786*4787* @param string$safe_text The text after it has been escaped.4788* @param string$text The text prior to being escaped.4789*/4790returnapply_filters('esc_xml',$safe_text,$text);4791}47924793/**4794* Escapes an HTML tag name.4795*4796* @since 2.5.0
History
Introduced in 5.5.0. Unchanged from 6.7.7 through 7.1.0.