I'm looking to display Xenforo posts as news comments on my site.
I can get posts, usernames, avatars, but I also want to use XF to parse the BBCode for the posts.
I know you can parse HTML into BBCode by doing this
Is there a reverse function?
I can get posts, usernames, avatars, but I also want to use XF to parse the BBCode for the posts.
I know you can parse HTML into BBCode by doing this
Code:
$message = \XF\Html\Renderer\BbCode::renderFromHtml( nl2br( $message ) );
Is there a reverse function?