src/View/Parsers/HTMLValue.php
public function getDocument()
    {
        if (!$this->valid) {
            return false;
        } elseif ($this->document) {
            return $this->document;
        } else {
            $this->document = new DOMDocument('1.0', 'UTF-8');
            $this->document->strictErrorChecking = false;
            $this->document->formatOutput = false;

            return $this->document;
        }
    }
public function getDocument()
    {
        if (!$this->valid) {
            return false;
        } elseif ($this->document) {
            return $this->document;
        } else {
            $this->document = new DOMDocument('1.0', 'UTF-8');
            $this->document->strictErrorChecking = false;
            $this->document->formatOutput = false;

            return $this->document;
        }
    }
public function getDocument ( ) { if ( ! $ this -> valid ) { return false ; } elseif ( $ this -> document ) { return $ this -> document ; } else { $ this -> document = new DOMDocument ( '1.0' , 'UTF-8' ) ; $ this -> document -> strictErrorChecking = false ; $ this -> document -> formatOutput = false ; return $ this -> document ; } }
Get the DOMDocument for the passed content
@return DOMDocument | false - Return false if HTML not valid, the DOMDocument instance otherwise
Get the DOMDocument for the passed content