显示来自CKEditor的文本 [英] Display text from CKEditor

查看:55
本文介绍了显示来自CKEditor的文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我显示CKEditor文本时,还将显示html标签。如何只显示文字?
我得到了:

When I display CKEditor text the html tags are also displayed. How can I only show the text? I'm getting this:


< p> < / p> < ul style ="列表样式类型:
none; list-style-image:无; list-style-position:外部;>
< li>达卡Nurzahan路< / li> < li>泰姬玛哈陵以西
路< / li> < li>电话:9110614< / li> < / ul>

<p> &nbsp;</p> <ul style="list-style-type: none; list-style-image: none; list-style-position: outside;"> <li> Nurzahan Road,Dhaka</li> <li> West of Tajmahal Road</li> <li> Phone: 9110614</li> </ul>

我只想显示以下内容:

* Nurzahan Road,Dhaka
* West of Tajmahal Road
* Phone: 9110614


推荐答案

您可能有 htmlentities() htmlspecialchars() 在显示HTML代码的代码中的某处。如果您将引用的HTML内容放入HTML页面,则它会根据需要打开。

You have probably a htmlentities() or htmlspecialchars() somewhere in the code that displays the HTML code. If you put in the HTML as you quoted it into a HTML page, it should turn up as desired.

这篇关于显示来自CKEditor的文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆