summaryrefslogtreecommitdiff
path: root/ext/tidy/examples/urlgrab5.php
diff options
context:
space:
mode:
Diffstat (limited to 'ext/tidy/examples/urlgrab5.php')
-rw-r--r--ext/tidy/examples/urlgrab5.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/tidy/examples/urlgrab5.php b/ext/tidy/examples/urlgrab5.php
index 875baf0cf9..afa90b5f3a 100644
--- a/ext/tidy/examples/urlgrab5.php
+++ b/ext/tidy/examples/urlgrab5.php
@@ -15,13 +15,13 @@
function dump_nodes(tidyNode $node, &$urls = NULL) {
$urls = (is_array($urls)) ? $urls : array();
-
+
if(isset($node->id)) {
if($node->id == TIDY_TAG_A) {
$urls[] = $node->attribute['href'];
}
}
-
+
if($node->hasChildren()) {
foreach($node->child as $c) {
@@ -29,7 +29,7 @@
}
}
-
+
return $urls;
}