html5qp( $document = NULL, string $selector = NULL, array $options = array()) : \QueryPath\DOMQuery
Parse HTML5 documents.
This uses HTML5-PHP to parse the document. In actuality, this parser does a fine job with pre-HTML5 documents in most cases, though really old HTML (like 2.0) may have some substantial quirks.
Supported Options Any options supported by HTML5-PHP are allowed here. Additionally, the following options have meaning to QueryPath.
A CSS3 selector.
An associative array of options, which is passed on into HTML5-PHP. Note that the standard QueryPath options may be ignored for this function, since it uses a different parser.