src/PowerTools/HTML5.php
public function parse(HTML5_Inputstream_Interface $input) {
        $this->errors = array();
        $events = new HTML5_Parser_DOMTreeBuilder(false, $this->options);
        $scanner = new HTML5_Parser_Scanner($input);
        $parser = new HTML5_Parser_Tokenizer($scanner, $events);

        $parser->parse();
        $this->errors = $events->getErrors();

        return $events->document();
    }
public function parse(HTML5_Inputstream_Interface $input) {
        $this->errors = array();
        $events = new HTML5_Parser_DOMTreeBuilder(false, $this->options);
        $scanner = new HTML5_Parser_Scanner($input);
        $parser = new HTML5_Parser_Tokenizer($scanner, $events);

        $parser->parse();
        $this->errors = $events->getErrors();

        return $events->document();
    }
public function parse ( HTML5_Inputstream_Interface $ input ) { $ this -> errors = array ( ) ; $ events = new HTML5_Parser_DOMTreeBuilder ( false , $ this -> options ) ; $ scanner = new HTML5_Parser_Scanner ( $ input ) ; $ parser = new HTML5_Parser_Tokenizer ( $ scanner , $ events ) ; $ parser -> parse ( ) ; $ this -> errors = $ events -> getErrors ( ) ; return $ events -> document ( ) ; }
Parse an input stream.

Lower-level loading function. This requires an input stream instead
of a string, file, or resource.
Parse an input stream .