title: str_replace does not work properly for html content get from curl
body: <p>I use curl to get html and save it to $content. Then I try the str_replace, it doesn't work:</p>
  
  <p><code>echo str_replace('&lt;a onclick="get_content(\'http://en.wikipedia.org\');" style="cursor: default;"&gt;Dojo&lt;/a&gt; Applications','OK',$content);</code> </p>
  
  <p>But when I try to print $content and copy the source and save it to $content again, it works:</p>
  
  <p>echo $content; Then I copy the printed and save it to $content again:</p>
  
  <p><code>$content='It is &lt;a onclick="get_content(\'http://en.wikipedia.org\');" style="cursor: default;"&gt;Dojo&lt;/a&gt; Applications';</code></p>
  
  <p>With the new $content, the replacement above works. </p>