开发者

Display text from CKEditor

开发者 https://www.devze.com 2022-12-18 01:19 出处:网络
When I display CKEditor text the html tags are also displayed. How can I only show the text? I\'m getting this:

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

精彩评论

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