esc_html() (funzione WordPress) restituisce, sotto forma di stringa, il valore sanitizzato di codice HTML (tag).
tips&tricks
Sintassi
esc_html($stringa)
| parametro | descrizione |
|---|---|
| $stringa | La stringa da processare |
Esempi
echo esc_html('<a href="http://www.gestiolex.it/">link</a>');
/* RISULTATO
<a href="http://www.gestiolex.it/">link</a>
*/
Contenuti correlati
- CSS
- HTML
- JavaScript
- jQuery
- PHP
- SQL
- WORDPRESS
0 Comment