I am in the process to migrate from a NodeBB forum to phpbb. So far I got everything working but one thing:
the XML reformatter removes all IMG tags for no apparent reason.
My posts are in HTML format, I insert them as is into the phpbb_posts.post_text field. As long as I don't process them any further, they render fine in a browser.
However, I figured that phpbb uses its own internal post_text XML format and that there's a tool one can use to migrate from imported earlier formats into that XML format.
I executed it like this:
Code: Select all
php bin/phpbbcli.php reparser:reparse --ansi
Now if I look at my post_text's, I see that any IMG tags have been completely removed.
Here's an example. Before reformat:
Code: Select all
<p>trotz Riss sieht es super aus.....und wirkt irre fluffig <img src="/legacy/emoji/1f60d.png" title=":heart_eyes:" alt="img" />
</p>
Code: Select all
<t>trotz Riss sieht es super aus.....und wirkt irre fluffig <br/>
</t>
I am using the latest version 3.2. I wrote the converter myself.
Thanks in advance,
Tom