note 44631 added to function.tidy-node-children
| From: | irazakhan at yahoo dot com | Date: | Wed, 11 Aug 2004 13:36:19 +0000 |
| Subject: | note 44631 added to function.tidy-node-children | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-74437@lists.php.net to get a copy of this message | ||
i am posting this bcz i search lot for this function but didnt get any working example so i built
one and posting so any one could get help from it.
this parse the string and move whole document and shows the values and name of object, which are
called tidy node here.
<?php
$html = '<html><head><title>test</title></head>
<body><p>imran raza khan</p> <applet id="123"
name="raza"></applet</body></html>';
$tidy = tidy_parse_string($html);
$html = tidy_get_html($tidy);
if($html->hasChildren())
{
foreach($html->child as $c)
{
echo $c->name."<br>";
echo $c->value."<br>";
echo "----------end------------<br>";
}
}
?>
----
Manual Page -- http://www.php.net/manual/en/function.tidy-node-children.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+44631
Delete -- http://master.php.net/manage/user-notes.php?action=delete+44631&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+44631&report=yes
Search -- http://master.php.net/manage/user-notes.php