Display text from CKEditor

白昼怎懂夜的黑 提交于 2019-12-11 01:15:31

问题


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

回答1:


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.



来源:https://stackoverflow.com/questions/2146237/display-text-from-ckeditor

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!