开发者

Display text from CKEditor

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

<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&开发者_开发知识库gt; </ul>

I want to show only this:

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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜