Beispiel #1
0
 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;
 }
Beispiel #2
0
 public function content()
 {
     $result = [];
     foreach ($this->body()->{'body.content'}->children() as $child) {
         $result[] = \DPAParser\Result\Content::parse($child);
     }
     return $result;
 }