setTagName("align"); $this->setUseOption(true); } public function asHtml(ElementNode $el) { $alignments = [ 'left', 'center', 'right' ]; $content = ""; foreach($el->getChildren() as $child) { $content .= $child->getAsHTML(); } $alignment = $el->getAttribute()['align']; if (!in_array($alignment, $alignments)) { return $el->getAsBBCode(); } return '