note 59178 added to function.dom-domdocument-loadhtmlfile

From: Date: Mon, 28 Nov 2005 17:49:05 +0000
Subject: note 59178 added to function.dom-domdocument-loadhtmlfile
Groups: php.notes 
Request: Send a blank email to php-notes+get-99255@lists.php.net to get a copy of this message
Here's the function I use to recursively get all text within a node: function GetNodeText($ndNode) { $sTagText = ""; if ($ndNode->nodeName == "#text") { $sTagText = $ndNode->nodeValue; } if ($ndNode->hasChildNodes()) { $sTagText .= GetNodeText($ndNode->firstChild); } if ($ndNode->nextSibling) { $sTagText .= GetNodeText($ndNode->nextSibling); } return $sTagText; } ---- Manual Page -- http://www.php.net/manual/en/function.dom-domdocument-loadhtmlfile.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+59178 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+59178&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+59178&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+59178&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+59178&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+59178&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+59178&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+59178&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+59178&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#99255) next »