example_extract_html.php 220 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 <?php // This example illustrates how to extract text content from a webpage include_once '../HtmlWeb.php'; use simplehtmldom\HtmlWeb; $doc = new HtmlWeb(); echo $doc->load('https://www.google.com/')->plaintext;