protected function _cleanCurrent() { $res = ''; if ($this->current) { $res .= '</div>'; if ($this->_collapsible && $this->current == 'body') { $res .= '</div>'; } $this->current = null; } return $res; }