PHP : Généralités 2

https://onlinephp.io/c/cd756

Afficher du html non interprété:

<?
echo' test <br>';
echo htmlentities ('test <br>');
?>

affichage:

test
test <br>

  • Utiliser les caractères spéciaux.
<?
echo " &#x2039; br &#x203A;";
?>

affichage:
‹ br ›