title: Simple html dom php returns empty array with find
body: <p>I'm trying to pick out content from a div in an external html file. Here's the html code</p>
  
  <pre><code>&lt;some html&gt;
      {&lt;div id="responseDiv" style="display:none"&gt;
  
  
  
  
      required content
      &lt;/div&gt;
  &lt;/some html&gt;
  </code></pre>
  
  <p>Here's the php code I'm using</p>
  
  <pre><code>include_once('simple_html_dom.php');
  $curl_h = curl_init('http://www.example.com/');
  
  curl_setopt($curl_h, CURLOPT_HTTPHEADER,
  array(
      'User-Agent: NoBrowser v0.1 beta',
  )
  );
  
  curl_setopt($curl_h, CURLOPT_RETURNTRANSFER, true);
  
  $handle = curl_exec($curl_h);
  
  $html = str_get_html('$handle');
  $ret = $html-&gt;find('div[id=DivID]'); 
     foreach ($ret as $post)
    {
      echo $post-&gt;outertext;
        }
  </code></pre>
  
  <p>I check around and found that $ret itself is an empty array. I have tried playing around with other div IDs etc but all to the same result. What am I doing wrong??</p>