title: How to send raw text with xmlhttp request?
body: <p>I'm trying to send a <code>textarea</code> field's text to a PHP file using ajax, the text contains HTML characters and should not be encoded.
  <br/>Using <code>FormData</code> it works perfectly however it's not supported in ie 9 and older versions! I tried to send the data as <code>string</code> by setting the <code>requestHeader</code> to <code>text/plain;charset=UTF-8;</code> or <code>multipart/form-data</code> but it didn't work!
  the code i'm using is:</p>
  
  <pre><code>var string = '&lt;td clas="tdClass"&gt;some text&lt;?php echo $contents; ?&gt;&lt;/td&gt;';
  
  var data = new FormData();
  data.append("data" , string);
  var xhr = (window.XMLHttpRequest) ? new XMLHttpRequest() : new activeXObject("Microsoft.XMLHTTP");
  xhr.open( 'post', '/path/to/php', true );
  xhr.send(data);
  </code></pre>
  
  <p>what's an alternative way to do this in IE 9?</p>