
函数调用后

html_entity_decode() 函数把 HTML 实体转换为字符
<?php
$str = "John & 'Adams'";
echo html_entity_decode($str);
echo "<br />";
echo html_entity_decode($str, ENT_QUOTES);
echo "<br />";
echo html_entity_decode($str, ENT_NOQUOTES);
?>
浏览器会输出:
John & 'Adams'
John & 'Adams'
John & 'Adams'