tag_escape

FUNCTION wp-includes\formatting.php (ligne 4794) github
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.

Paramètres

Entrée :
$tag_name
Sortie :
@param string $safe_text The text after it has been escaped.
@param string $text      The text prior to being escaped.
@param string $tag_name
@return string Sanitized tag name.

Utilisation

// Utilisation de la fonction tag_escape
$result = tag_escape($tag_name);

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

Actualités

Chargement des actualités...