function bbcodeColor($dom, $nodes, $color) { $span = $dom->createElement('span'); $span->setAttribute('style', "color: {$color}"); bbcodeAppend($span, $nodes); return $span; }
function bbcodeTableCell($dom, $nodes) { $td = $dom->createElement('td'); bbcodeAppend($td, $nodes); return $td; }