title: Cannot replace &amp; with & in JSON textResponse
body: <p>I've written a PHP-script that parses a list from remote website and output the result as JSON form my iPhone app which is built on Titanium Mobile. </p>
  
  <p>This is my header: <code>header('content-type:application/json;charset=utf-8');</code>
  Also tried with ISO-8859-1 but problem persists.</p>
  
  <p>I print the textResponse in the titanium console and see that the &amp;-characters are represented as <code>&amp;amp;</code>. Same result when I make the same request in my web browser.</p>
  
  <p>I try to replace <code>&amp;amp;</code> with &amp; using replace('<code>&amp;amp;</code>', '&amp;') but it has no effect, <code>&amp;amp;</code> is still <code>&amp;amp;</code>.</p>
  
  <pre><code>var events = JSON.parse(this.responseText);
      Titanium.API.info(events);
  
      for (var i = 0; i &lt; events.length; i++) {
          var id = events[i].id;
          var title = events[i].title;
  
          var amp = title.search('&amp;amp;');
          if (amp != -1) {
              title.replace('&amp;amp;', '&amp;');
              Titanium.API.info(amp);
              Titanium.API.info(title);
          }
  
          var row = Titanium.UI.createTableViewRow({title: title, id: id, hasChild: true});
          rowData[i] = row;           
      }
  </code></pre>