PHP/HTML/html entity decode

Материал из Web эксперт
Перейти к: навигация, поиск

string html_entity_decode ( string html [, int options [, string charset]] ) converts an &-escaped string into its original format

   <source lang="html4strict">

<?

   $f = "Bill & Ben";
   $s = htmlentities($f);
   $unsafe = html_entity_decode($s);

?>

 </source>