esc_xml

FUNCTION wp-includes\formatting.php (ligne 4741) github
Filters a string cleaned and escaped for output in a textarea element.

Paramètres

Entrée :
$text
Sortie :
@param string $safe_text The text after it has been escaped.
@param string $text      The text prior to being escaped.
@param string $text Text to escape.
@return string Escaped text.

Utilisation

// Utilisation de la fonction esc_xml
$result = esc_xml($text);

if ($result) {
    // Votre logique ici
}

Actualités

Chargement des actualités...