PHP 富文本解码为 HTML 并显示

PHP 富文本解码为 HTML 并显示

 

使用  html_entity_decode 函数

参考文档

PHP实例:

// html_entity_decode(待解码内容, 如何处理引号)
html_entity_decode($activity['content'], ENT_QUOTES)

 

 
posted @ 2019-11-05 17:09  GetcharZp  阅读(1230)  评论(2编辑  收藏  举报