Filters a string cleaned and escaped for output in an HTML attribute. Text passed to esc_attr() is stripped of invalid or special characters before output.
$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 @return string Escaped text.
// Utilisation de la fonction esc_textarea
$result = esc_textarea($text);
if ($result) {
// Votre logique ici
}
Chargement des actualités...