DiDom\Document::loadHtmlFile PHP Method

loadHtmlFile() public method

Load HTML from a file.
public loadHtmlFile ( string $filepath, integer $options ) : Document
$filepath string The path to the HTML file
$options integer Additional parameters
return Document
    public function loadHtmlFile($filepath, $options = 0)
    {
        return $this->load($filepath, true, 'html', $options);
    }

Usage Example

Beispiel #1
0
 /**
  * @dataProvider loadHtmlFileProvider
  */
 public function testLoadHtmlFileException($filename, $type)
 {
     $this->setExpectedException($type);
     $document = new Document('', true);
     $document->loadHtmlFile($filename);
 }
All Usage Examples Of DiDom\Document::loadHtmlFile