diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/tidy/examples/cleanhtml5.php | 4 | ||||
-rw-r--r-- | ext/tidy/examples/urlgrab5.php | 8 |
2 files changed, 5 insertions, 7 deletions
diff --git a/ext/tidy/examples/cleanhtml5.php b/ext/tidy/examples/cleanhtml5.php index 5e4095e8ac..c31e36f1f2 100644 --- a/ext/tidy/examples/cleanhtml5.php +++ b/ext/tidy/examples/cleanhtml5.php @@ -21,7 +21,7 @@ $tidy = tidy_parse_file($_SERVER['argv'][1]); } - $tidy->clean_repair(); + $tidy->cleanRepair(); if(!empty($tidy->error_buf)) { @@ -36,4 +36,4 @@ -
\ No newline at end of file + diff --git a/ext/tidy/examples/urlgrab5.php b/ext/tidy/examples/urlgrab5.php index d9f9f7f065..8e08322a14 100644 --- a/ext/tidy/examples/urlgrab5.php +++ b/ext/tidy/examples/urlgrab5.php @@ -22,12 +22,10 @@ } } - if($node->has_children()) { + if($node->hasChildren()) { foreach($node->child as $c) { - dump_nodes($c, $urls); - } } @@ -36,6 +34,6 @@ } $a = tidy_parse_file($_SERVER['argv'][1]); - $a->clean_repair(); + $a->cleanRepair(); print_r(dump_nodes($a->html())); -?>
\ No newline at end of file +?> |