我正在尝试使用 htmlspecialchars_decode() 但它不解码
进入空间。这个问题有解决办法吗?
My code:
$query = mysql_query("select * from nowosci order by id desc limit 0,3");
while($rekord = mysql_fetch_array($query))
{
$tekst .= '<h1 class="body"><div class="date" style="display:inline; color:grey; margin-right:5px;">'.$rekord[3].'</div>'.html_entity_decode($rekord[1]).'</h1><div class="main">'.html_entity_decode($rekord[2]).'</div>';
}
echo $tekst
Use html_entity_decode()
反而。
htmlspecialchars_decode()
只解码& " (when ENT_NOQUOTES is not set), ' (when ENT_QUOTES is set), < and >.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)