/** * @return \Components\Text_Html_Tidy */ public function parse() { $charset = strtolower(str_replace(['-', '_'], null, $this->m_charset->name())); $config = $this->config; $config['char-encoding'] = $charset; $config['drop-proprietary-attributes'] = !$this->ignoreProprietaryAttributes; Runtime::pushRuntimeErrorHandler($this); $this->m_tidy->parseString($this->m_html, $config, $charset); Runtime::popRuntimeErrorHandler($this); return $this; }