un sitio web.
Pero elimina cualquier caracter br url y <p> y yo deseo que permita mantener dichas variables sin que las elimine, gracias desde ya por sus ayudas.
Código PHP:
   function file_get_contents_curl($url)
{
    $ch = curl_init();
 
    curl_setopt($ch, CURLOPT_HEADER, 0);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
 
    $data = curl_exec($ch);
    curl_close($ch);
 
    return $data;
}
 
$html = file_get_contents_curl("http://lcalhost/mi-artiulo");
 
//parsing begins here:
$doc = new DOMDocument();
@$doc->loadHTML($html);
 
$divs = $doc->getElementsByTagName('div');
foreach($divs as $div) {
      if ($div->getAttribute('id') === 'editResumen') {
         echo '<b>'.utf8_decode($div->nodeValue).'</b>';
    }
} 
    
 
 

