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.
4765*4766* @since 5.5.04767*4768* @param string$safe_text The text after it has been escaped.4769* @param string$text The text prior to being escaped.4770*/4771returnapply_filters('esc_xml',$safe_text,$text);4772}47734774/**4775* Escapes an HTML tag name.4776*4777* @since 2.5.0
History
Introduced in 5.5.0. Unchanged from 6.7.7 through 7.1.0.