note 44631 deleted from function.tidy-node-children by aidan

From: Date: Wed, 11 Aug 2004 14:04:48 +0000
Subject: note 44631 deleted from function.tidy-node-children by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-74442@lists.php.net to get a copy of this message
Note Submitter: irazakhan@yahoo.com ---- 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>"; } } ?>

« previous php.notes (#74442) next »