DOMDocument::loadHTMLFile Load HTML from a file &reftitle.description; boolDOMDocument::loadHTMLFile stringfilename The function parses the HTML document in the file named filename. Unlike loading XML, HTML does not have to be well-formed to load. &reftitle.parameters; filename The path to the HTML file. &reftitle.returnvalues; &return.success; If called statically, returns a DOMDocument&return.falseforfailure;. &reftitle.errors; If an empty string is passed as the filename or an empty file is named, a warning will be generated. This warning is not generated by libxml and cannot be handled using libxml's error handling functions. &dom.allowstatic; &dom.malformederror; &reftitle.examples; Creating a Document loadHTMLFile("filename.html"); echo $doc->saveHTML(); ?> ]]> &reftitle.seealso; DOMDocument::loadHTML DOMDocument::saveHTML DOMDocument::saveHTMLFile