From 0dd6bd1d9f76a9202e4f88542631368b03c92c8c Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Thu, 22 Jan 2004 15:45:50 +0000 Subject: [PATCH] - Update examples to studlyCaps syntax --- ext/tidy/examples/cleanhtml5.php | 4 ++-- 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 +?> -- 2.50.1