How to convert bbcode to html in usage of SCEditor

余生颓废 提交于 2019-12-08 12:15:51

问题


I used SCEditor in my forum. I managed inserting bbcodes to database. But when I try to show codes in the page, bbcodes are shown without styling. No html, no style. Only bad bbcodes. I am investigating for a long time in its documentation pages but I did not find any php parser. Here is the screenshot.

Please, could you help me, how do I parse bbcode to html in PHP?

回答1:


You can use SBBCodeParser. SCEditor and this class were coded by the same person. So it would be more compatible.



来源:https://stackoverflow.com/questions/17892183/how-to-convert-bbcode-to-html-in-usage-of-sceditor

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