[RSS Feed/News] Allowing BBCode/complex text inside BBCodes made with PHP callback

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
I have the following PHP that works as intended with one line text but BBCodes and newlines inside it is parsed as HTML.

PHP:

Code:
<?php
 
    namespace custom_addons;

    class box {

        public static function box($tagChildren, $tagOption, $tag, array $options, \XF\BbCode\Renderer\AbstractRenderer $renderer)
        {
            $res = $renderer->renderSubTree($tagChildren, $options);
            $toptions = trim(strip_tags($tag['option']));
            $toptions =...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom