
SUK HYUN - 2009-10-11 04:10:29
Unknown Error: Non-static method HTMLFilterIterator::find() should not be called statically in example_HTMLPP.php on line 146
[debugHelper.php : 1074] [example_HTMLPP.php : 146] [example_HTMLPP.php : 146]
145 array(TEXT_NODE)
146 );
147
-------------------------------
$HTML=new HTMLPP;
//$HTML->loadHTMLFile("http://nexs.cjgls.com/web/tracking_hth_pop.jsp?slipno=312990514693");
$HTML->loadHTMLFile("http://www.mysite.com");
$HTML->stripComments(); //Now all comments are removed
$document = & $HTML->getDocument();
echo $HTML->render();
$func=create_function(
'$element,$index',
'if($element->textContent) return true; else return false;'
);
//Get all text nodes in the body sub tree that are not empty
$col4 =& HTMLFilterIterator::find(
$context,
$func,
HTML_SEARCH_DESCENDANT,
array(TEXT_NODE)
);