/** * @param string $html */ public function parse($html) { $html = $this->stripString($html); $loader = new HTMLLoader(); $dom = $loader->parse($html); //echo '<pre>'.$dom->look().'</pre>'; $body = $this->word->getDocument()->getBody(); $this->translate($dom, $body); }