public function to_html() { $html = parent::to_html(); $html = str_replace('<block', '<div', $html); $html = str_replace('</block', '</div', $html); $html = str_replace('style=', 'class=', $html); return $html; }
public function content() { $result = []; foreach ($this->body()->{'body.content'}->children() as $child) { $result[] = \DPAParser\Result\Content::parse($child); } return $result; }