filtrod 5.5.0
esc_xml
Opis — z kodu źródłowego
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.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$safe_text | string | The text after it has been escaped. |
$text | string | The text prior to being escaped. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'esc_xml', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'esc_xml', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii