<?php
namespace Foghost\TDBbcode;
class BbcodeParser {
public static function td($tagChildren, $tagOption, $tag, array $options, \XF\BbCode\Renderer\AbstractRenderer $renderer)
{
$res = $renderer->renderSubTree($tagChildren, $options);
$toptions = trim(strip_tags($tag['option']));
$toptions = preg_split("|,|", $toptions, -1, PREG_SPLIT_NO_EMPTY);
// [td={IDENTIFIER},{NUMBER1},{NUMBER2}]{TEXT}[/td]
@list($class, $num1, $num2) = $toptions;
if ($tmp = trim($class)) {
$classTag = "class=\"$tmp\"";
}
if ($tmp = trim($num1)) {
$rowSpan = "rowspan=\"$tmp\"";
}
if ($tmp = trim($num2)) {
$colSpan...