Essence\Dom\Document\Native::_loadDocument PHP Method

_loadDocument() protected method

Builds a DOMDocument from the HTML source.
protected _loadDocument ( )
    protected function _loadDocument()
    {
        $this->_Document = new DOMDocument();
        $reporting = error_reporting(0);
        $loaded = $this->_Document->loadHTML($this->_html);
        error_reporting($reporting);
        if (!$loaded) {
            throw new Exception('Unable to load HTML document.');
        }
    }