Exemple d’utilisation de ‘htmlspecialchars()’

Author:


Download


<?php
/*
&&  devient &amp;amp
""  devient &amp;quot
<   devient &amp;lt;
>   devient &amp;gt
*/
$chaineOri = "<<test>> &amp; !";
$chaineConv = htmlspecialchars($chaineOri);
print $chaineConv;
?>

Leave a Reply

Your email address will not be published. Required fields are marked *


+ nine = 12