summaryrefslogtreecommitdiff
path: root/ext/tidy/examples
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2004-01-22 15:45:50 +0000
committerPierre Joye <pajoye@php.net>2004-01-22 15:45:50 +0000
commit0dd6bd1d9f76a9202e4f88542631368b03c92c8c (patch)
tree3971f2323d4861054c95e25ed4f5eeed9fb877fa /ext/tidy/examples
parenta729ce0434609cdbb7fc9b646a44013bc315ea58 (diff)
downloadphp-git-0dd6bd1d9f76a9202e4f88542631368b03c92c8c.tar.gz
- Update examples to studlyCaps syntax
Diffstat (limited to 'ext/tidy/examples')
-rw-r--r--ext/tidy/examples/cleanhtml5.php4
-rw-r--r--ext/tidy/examples/urlgrab5.php8
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
+?>