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; }