setTagName("youtube"); } public function asHtml(ElementNode $el) { $content = ""; foreach($el->getChildren() as $child) { $content .= $child->getAsBBCode(); } $foundMatch = preg_match('/^([A-z0-9=\-]+?)$/i', $content, $matches); if(!$foundMatch) { return $el->getAsBBCode(); } else { return ""; } } }