title: Replacing &#xD; with <br> before printing XML contents using SimpleXML
body: <p>I know it's probably a very simple issue but still I didn't find a solution...
  Ok, I'll be brief:
  suppose to have a so structured XML file:</p>
  
  <pre><code>&lt;root&gt;&lt;item&gt;&lt;text&gt;blah blah blah&amp;#xD;blah blah blah&amp;#xD;blah blah blah&amp;#xD;...&lt;/text&gt;&lt;/item&gt;&lt;/root&gt;
  </code></pre>
  
  <p>My XML is obviously more complex but that's not important since my question is:
  how do I replace those <code>&amp;#xD;</code> with, for instance, html <code>&lt;br&gt;</code> tags?</p>
  
  <p>I'm using SimpleXML to read data from XML and tried with:</p>
  
  <pre><code>echo str_replace("&amp;#xD;", "&lt;br&gt;", $message-&gt;text);
  </code></pre>
  
  <p>and even with:</p>
  
  <pre><code>echo str_replace("\n", "&lt;br&gt;", $message-&gt;text);
  </code></pre>
  
  <p>but nothing...</p>
  
  <p>I need to use SimpleXML for this.</p>