Thanks all for your answers.
The problem here is that because we are importing by writing straight to the flarum db, I need to "translate" on the fly the SMF bbcode into the real format used by flarum to store data in the db itself.
Example:
- Original data in SMF: [b]Text in bold[/b]
- Translation in Markdown: **Text in bold**
If I save **Text in bold** in the db, flarum shows something like *Te
Now, of course we try to look behind the curtains, and if I create a post and enter **Text in bold** as text, than post it, clearly this gets "translated" and saved as:
<r><p><STRONG><s>**</s>Text in bold<e>**</e></STRONG></p></r>
I need to be able to do a proper conversion of bbcode into flarum "lingo" just before saving everything into the db, otherwise the text is simply displayed wrongly.
Do you see my point?
P.S. I have, just to avoid problems, disabled the bbcode extension but left enabled the Markdown (v0.1.0-beta.5) one.
I'm running the latest available beta of flarum (v0.1.0-beta.5).