I\'m having a problem with a script I\'ve been using for some time and it worked for me until I hit this problem.
I have a script with which I\'d like to delete all
Try this way:
$doc->loadHTML($a); $list = $doc->getElementsByTagName("p"); while ($list->length > 0) { $p = $list->item(0); $p->parentNode->removeChild($p); }