diff --git a/plugins/af_elreg/init.php b/plugins/af_elreg/init.php index a652d25d1..c8d5516ee 100644 --- a/plugins/af_elreg/init.php +++ b/plugins/af_elreg/init.php @@ -24,6 +24,14 @@ class Af_ElReg extends Plugin { $basenode = false; if ($doc) { + $xpath = new DOMXPath($doc); + + $trash = $xpath->query("//*[@class='wptl top' or @class='wptl btm']"); + + foreach ($trash as $t) { + $t->parentNode->removeChild($t); + } + $basenode = $doc->getElementById("body"); if ($basenode) {