title: Replace this Hex chars from string in PHP
body: <p>I'm generating an XML from data that comes from database (and some JSON feeds).</p>
  
  <p>I'm having some problems with some texts that contains some hex chars that are breaking my XML.</p>
  
  <p>For example, see this screenshot of the error I get from Chrome:
  <img src="https://i.stack.imgur.com/DfZRY.png" alt="XML error"></p>
  
  <p>I identified the hex characters that are giving me problems (I believe they're called control characters). And these are:</p>
  
  <pre><code>0x03
  0x05
  0x16
  0x0E
  </code></pre>
  
  <p>How can I replace those characters with PHP before printing them on my XML output?</p>
  
  <p>Thanks!</p>