可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
I maintain a bulletin board that saves rich text messages in HTML. Now I need to migrate all those messages into Joomla Kunena bulletin board that requires BBCode representation of HTML.
Is there any library to convert HTML to BBCode cleanly. There are bunch of scripts out there for BBCode to HTML but not the other way around.
Thanks...
回答1:
It should be doable with XSLT in text output mode:
To get there parse HTML and use built-in XSLT processor.
回答2:
I would recommend that you use regular expressions to convert
to [b]
tags. This shouldn't be that hard, as all you would need to to is get the HTML and feed it in to a php script that could save it in some kind of file that you can save in your new forum.
Hope that helps, RayQuang