LPH
Well-known member
Hi
The following code almost works.
The issue is if the message has a quote. The link to the quote is relative and not canonical. Are there other options besides 'escaped'? I see some code in XenForo using
From XenForo, I see:
This suggests there are five parameters and my code only has three.
Sorry, I'm bouncing around on this topic and any help is appreciated.
The following code almost works.
PHP:
\XF::app()->finder('XF:Post')->where('post_id', $non_wp_postId )->fetchOne();
PHP:
\XF::app()->templater()->fn( 'bb_code', [ $reply['message'], $reply, 'escaped'] );
The issue is if the message has a quote. The link to the quote is relative and not canonical. Are there other options besides 'escaped'? I see some code in XenForo using
$escape = false
. From XenForo, I see:
PHP:
$this->app->bbCode()->render($bbCode, $type, $context, $content, $options);
This suggests there are five parameters and my code only has three.
Sorry, I'm bouncing around on this topic and any help is appreciated.