user259895
user259895

Reputation: 33

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> </ul>

I want to show only this:

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

Upvotes: 2

Views: 10959

Answers (1)

Pekka
Pekka

Reputation: 449385

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.

Upvotes: 1

Related Questions