loadHTML($file); $bodies = $dom->getElementsByTagName('body'); assert($bodies->length === 1); $body = $bodies->item(0); for ($i = 0; $i < $body->children->length; $i++) { $body->remove($body->children->item($i)); } $stringbody = $dom->saveHTML($body); return $stringbody; } $url = "index.php?option=com_seminarman&view=categories"; $bodycontent = getbody($url); ?>
"; echo ""; ?>