title: php trim won't work
body: <p>So I have a server side ajax php file:</p>
  
  <pre><code>$thing = "\n\ncode\n";
  echo(trim($thing, '\n'));
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/l67Kl.png" alt="enter image description here"></p>
  
  <p>But when I use this php file for an ajax call, the responseText does not have newlines removed!</p>
  
  <p><img src="https://i.stack.imgur.com/xJQ5n.png" alt="enter image description here"></p>
  
  <pre><code>var xhr7 = new XMLHttpRequest();
  xhr7.onreadystatechange = function() {
    if (xhr7.readyState == 4) {
      if (xhr7.status == 200) {
        alert('trying');
        alert(xhr7.responseText);
        chrome.tabs.executeScript(null, {code: xhr7.responseText });
      } else {
        alert("404 server side ajax file DOES NOT EXIST");
      }
    }
  };
  xhr7.open('POST', 'http://texthmu.com/Devin/HMU%20ext/Post-jsfile-forItsCode.php', true);
  xhr7.setRequestHeader("Content-type","application/x-www-form-urlencoded"); //following w3 
  xhr7.send(); `
  </code></pre>