I want to get an <ul>
s innerHTML
from another domains html with php.
$mhraWebUygulamasi =file_get_contents('http://www.mhra.gov.uk/Safetyinformation/Safetywarningsalertsandrecalls/index.htm');
$doc = new DOMDocument();
$doc->loadHTML($mhraWebUygulamasi);
$doc->preserveWhiteSpace=false;
But befor coding further, i got this warning message.
Warning: DOMDocument::loadHTML(): Unexpected end tag : fragmentinstance in Entity, line: 123 in C:\xampp\htdocs\YeBeSis\mhra.php on line 4
Line 4 is $doc->loadHTML($mhraWebUygulamasi);
Other line number may target urls html code.
How to handle target URL gently and load it to a DOM container? Where did i go wrong?