数据库中的html代码怎么替换显示

WBOY
Release: 2016-06-13 13:25:30
Original
944 people have browsed it

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

喂,哈罗



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

谢谢!

------解决方案--------------------
html_entity_decode
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!