src/Service/Browser.php
public function getDom($path)
    {
        $dom = new \DOMDocument('1.0', 'utf8');
        if (($content = $this->getContent($path)) && $dom->loadHTML($content)) {
            return $dom;
        } else {
            return;
        }
    }
public function getDom($path)
    {
        $dom = new \DOMDocument('1.0', 'utf8');
        if (($content = $this->getContent($path)) && $dom->loadHTML($content)) {
            return $dom;
        } else {
            return;
        }
    }
public function getDom ( $ path ) { $ dom = new \ DOMDocument ( '1.0' , 'utf8' ) ; if ( ( $ content = $ this -> getContent ( $ path ) ) && $ dom -> loadHTML ( $ content ) ) { return $ dom ; } else { return ; } }
Get DOMDocument from path.

Receive content from the URL, cleaning using Tidy and creating DOM document

@param string $path

@return \DOMDocument|null
Get DOMDocument from path .