Filter hook 'esc_xml'

in WP Core File wp-includes/formatting.php at line 4786

Description

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.

Occurrences

Filename Line Number
wp-includes/formatting.php 4786

Parameters

Type Name Description
string $safe_text The text after it has been escaped.
string $text The text prior to being escaped.

PHP Doc

/**
	 * 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.
	 *
	 * @since 5.5.0
	 *
	 * @param string $safe_text The text after it has been escaped.
	 * @param string $text      The text prior to being escaped.
	 */