html_entity_decode 将数据库里的 | 互联网金融 “野蛮生长” 的休止符| &rdquo转义成”“

 
函数调用后
 
html_entity_decode() 函数把 HTML 实体转换为字符
<?php
$str = "John &amp; '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'
 
原文地址:https://www.cnblogs.com/scjzhong/p/5169751.html