title: utf8_decode error with ampersand (&)
body: <p>I have been building an API which returns XML code. For example, the API will return:</p>
  
  <pre><code>&lt;message&gt;hello, this is a message &amp;amp; it used htmlsepcialchars&lt;/message&gt;
  </code></pre>
  
  <p>I am using file_get_contents() and simplexml_load_string() to load the returned information into an array.</p>
  
  <p>I then used utf8_decode() to convert the message into a friendly charset on the receiving website. However, I receive the following message which pin points to the ampersand (&amp;) in the message:</p>
  
  <pre><code>Warning: main() [function.main]: unterminated entity reference 
  </code></pre>
  
  <p>Due to the ampersand, the rest of the message is truncated. Any ideas how to get around this problem?</p>