WordPress at Your Fingertips
filter is not described

esc_xml filter-hook . WP 5.5.0

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.


add_filter( 'esc_xml', 'filter_function_name_9422', 10, 2 );
function filter_function_name_9422( $safe_text, $text ){
	// filter...

	return $safe_text;
The text after it has been escaped.
The text prior to being escaped.


Since 5.5.0 Introduced.

Where the hook is called

wp-includes/formatting.php 4595
return apply_filters( 'esc_xml', $safe_text, $text );

Where in WP core the hook is used WordPress

Usage not found.