<?php $html = " <html> <body> <div id='div1'></div> <div id='div2'> Some text <span>Inside a span</span> <div>Nested div</div> </div> </body> </html>"; $doc = new DOMDocument(); $doc->loadHTML($html); $div = $doc->getElementById("div2"); echo $div->ownerDocument->saveHTML($div);
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`