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.
4791*4792* @since 5.5.04793*4794* @param string$safe_text The text after it has been escaped.4795* @param string$text The text prior to being escaped.4796*/4797returnapply_filters('esc_xml',$safe_text,$text);4798}47994800/**4801* Escapes an HTML tag name.4802*4803* @since 2.5.0
History
Introduced in 5.5.0. Unchanged from 6.7.7 through 7.1.0.