日期:2014-05-17  浏览次数:20439 次

数据库中的html代码如何替换显示
我用ckeditor将数据保存到数据库中,但在读出的时候网页上显示:

<p> <span style="color: rgb(67, 67, 67); font-family: Arial, sans-serif; font-size: 14px; font-weight: bold; line-height: 24px; ">喂,哈罗</span></p>

没有自动转换成网页文字及样式,而我只想显示你转换后的网页,不上是述全字符串。需如何转换?用什么函数?

谢谢!

------解决方案--------------------
html_entity_decode