Filters a string cleaned and escaped for output in JavaScript. Text passed to esc_js() is stripped of invalid or special characters, and properly slashed for 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_html
$result = esc_html($text);
if ($result) {
// Votre logique ici
}
Chargement des actualités...