1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<?php // example of how to modify HTML contents include('../simple_html_dom.php');
// get DOM from URL or file $html = file_get_html('http://www.google.com/');
// remove all image foreach($html->find('img') as $e) $e->outertext = '';
// replace all input foreach($html->find('input') as $e) $e->outertext = '[INPUT]';
// dump contents echo $html; ?>
|