title: PHP DOMDocument | ends by null char (\u0)
body: <p>I noticed that on this url: <a href="http://www.bubbleroom.se/sv/kl%C3%A4der/kvinna/controlbody/bodys/body-nero" rel="nofollow">http://www.bubbleroom.se/sv/kläder/kvinna/controlbody/bodys/body-nero</a> there is a null character <code>\u0</code> in the tag with id <code>prodText</code>.</p>
  
  <p>The whole document seems to end by this null char when attempting to extract anything else after this character.</p>
  
  <hr>
  
  <h3>Edit</h3>
  
  <p>The code that "doesn't" work. It works, but not when there's a null char in the <code>$html</code> string</p>
  
  <pre><code>$dom = new DOMDocument;
  libxml_use_internal_errors(true);
  $dom-&gt;loadHTML($html);
  libxml_clear_errors();
  
  return new DOMXPath($dom);
  </code></pre>