function HTML5::loadHTML
Parse a HTML Document from a string.
Take a string of HTML 5 (or earlier) and parse it into a DOMDocument.
Parameters
string $string A html5 document as a string.:
array $options Configuration options when parsing the HTML.:
Return value
\DOMDocument A DOM document. DOM is part of libxml, which is included with almost all distribtions of PHP.
File
-
vendor/
masterminds/ html5/ src/ HTML5.php, line 87
Class
- HTML5
- This class offers convenience methods for parsing and serializing HTML5. It is roughly designed to mirror the \DOMDocument native class.
Namespace
MastermindsCode
public function loadHTML($string, array $options = array()) {
return $this->parse($string, $options);
}