<?php $dom = new DOMDocument(); $dom->loadHtml(' <html><head></head> <body> <div id="content"></div> </body> </html> '); var_dump($content = $dom->getElementById('content')); //NULL !?
You have javascript disabled. You will not be able to edit any code.