- htmlentities: documentation ( source)
- htmlspecialchars: documentation ( source)
- html_entity_decode: documentation ( source)
<?php
echo $str = "Cossé René &";
echo "\n";
echo htmlentities($str, ENT_XML1, "UTF-8", false);
//echo "\n";
//echo htmlentities($str,ENT_XML1,"UTF-8");
echo "\n";
echo $str = html_entity_decode($str);
echo "\n";
echo $str = htmlspecialchars(html_entity_decode($str,ENT_XML1));
echo ut8_decode("Coss Ren�");