title: str_get_html is not loading a valid html string
body: <p>I receive an html string using curl:</p>
  
  <pre><code>curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  $html_string = curl_exec($ch);
  </code></pre>
  
  <p>When I <code>echo</code> it I see a perfectly good html as I require for my parsing needs.
  But, When trying to send this string to <code>HTML DOM PARSER</code> method <code>str_get_html($html_string)</code>, It would not upload it (returns false from the method invocation).</p>
  
  <p>I tried saving it to file and opening with <code>file_get_html</code> on the file, but the same thing occurs.</p>
  
  <p>What can be the cause of this? As I said, the html looks perfectly fine when I echo it.</p>
  
  <p>Thanks a lot.</p>
  
  <p>The code itself:</p>
  
  <pre><code>$html = file_get_html("http://www.bgu.co.il/tremp.aspx");
  $v = $html-&gt;find('input[id=__VIEWSTATE]');
  $viewState = $v[0]-&gt;attr['value'];
  $e = $html-&gt;find('input=[id=__EVENTVALIDATION]');
  $event = $e[0]-&gt;attr['value'];
  
  $html-&gt;clear(); 
  unset($html);
  
  $body = " A_STRING_THAT_CONTAINS_SOME_DATA " 
  
  $ch = curl_init("http://www.bgu.co.il/tremp.aspx");
  curl_setopt($ch, CURLOPT_POSTFIELDS, $body);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  
  $html_string = curl_exec($ch);
  
  $file_handle = fopen("file.txt", "w");
  fwrite($file_handle, $html_string);
  fclose($file_handle);
  
  curl_close($ch);
  
  $html = str_get_html($html_string);
  </code></pre>