esc_xml
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
apply_filters( 'esc_xml', string $safe_text, string $text )
Описание
Текст, переданный в esc_xml(), очищается от недопустимых или специальных символов перед выводом. Именованные символьные ссылки HTML преобразуются в эквивалентные кодовые точки.
Оригинал (английский)
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.
Фильтруемое значение
Параметры
$safe_text
string
обязательный
$text
string
обязательный
Исходный код
wp-includes/formatting.php:4797
return apply_filters( 'esc_xml', $safe_text, $text );
История изменений
| Версия | Описание |
|---|---|
| 5.5.0 | Introduced. |

