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> </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.
精彩评论