title: How to get HTML content of a DIV in PHP
body: <p>I need to get the HTML content of a DIV from the URL. I've already try to get the content of the div with preg_match() and simple_html_dom but I've only get the plain text.</p>
  
  <p>Example with simple_html_dom :</p>
  
  <pre><code>$html = file_get_html('http://webpage.tld');
  $code = $html-&gt;find('#mydiv', 0);
  var_dump($code-&gt;plaintext);
  </code></pre>