(PHP 5, PHP 7)
Load HTML from a file
public bool DOMDocument::loadHTMLFile ( string $filename [, int $options = 0 ] )
The function parses the HTML document in the file named filename. Unlike loading XML, HTML does not have to be well-formed to load.
Parameters:
filename
The path to the HTML file.
options
Since PHP 5.4.0 and Libxml 2.