XF 2.1 bbcode in template

Robert9

Well-known member
I use something like

{{ bb_code($link.description, 'field', $link) }}

it comes back as:

<div class="bbWrapper">$link.description </div>


but i want to add this directly behind the text
Code:
                <xf:if is="$link.tags">
                    <xf:foreach loop="$link.tags" value="$tag">
                        #<a href="{{ link('tags', $tag) }}" class="linkTagItem" dir="auto">{$tag.tag}</a>
                    </xf:foreach>
                </xf:if>

and not in a new row. Any idea how to do that?

Result should look like

This is my description. #lala #lila #lu
 

Robert9

Well-known member
Code:
    public function filterFinalOutput($output)
    {
        return '<div class="bbWrapper">' . trim($output) . '</div>';
    }

Can i tell bbcode() not to filterFinalOutput?
 
Top