PHP code example of html5 / htmlreader
1. Go to this page and download the library: Download html5/htmlreader library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
html5 / htmlreader example snippets
$reader = new HtmlReader();
$reader->loadHtml("input.html")
// $reader->loadHtmlString("<html></html>");
$reader->setHandler(new HtmlCallback()); // <-- Write your own HtmlCallback
$reader->parse();