So i have made a custom bbcode tag for
...
$res is returned ok but after each tr-tag there is appended a br-tag.
Each
My function for TR returns
I have searched the code but cant figure out where that <br /> tag actually are generated. Anybody have any idea where i should start searching?
EDIT: Looks like there is appended a br-tag if [tr]...[/tr] have a line-feed after. Is it the editor that replaces "\n" with <br /> ?
PHP:
public static function table($tagChildren, $tagOption, $tag, array $options, \XF\BbCode\Renderer\AbstractRenderer $renderer)
{
$res = $renderer->renderSubTree($tagChildren, $options);
return "<table>{$res}</table>";
}
$res is returned ok but after each tr-tag there is appended a br-tag.
Each
</tr>
becomes </tr><br />
My function for TR returns
'<tr>{$trcontent}</tr>'
and nothing else.I have searched the code but cant figure out where that <br /> tag actually are generated. Anybody have any idea where i should start searching?
EDIT: Looks like there is appended a br-tag if [tr]...[/tr] have a line-feed after. Is it the editor that replaces "\n" with <br /> ?
Last edited: