title: save text file with javascript using fileSaver.js and Blob.js
body: <p>don't know if most of you knows about the javascript libraries to save files.</p>
  
  <p>Basically the code used to be the following:</p>
  
  <pre><code>var bb = new BlobBuilder();
  bb.append(content);
  var fileSaver = window.saveAs(bb.getBlob("text/plain;charset=UTF-8"), "filename.txt");
  </code></pre>
  
  <p>But now is like this:</p>
  
  <pre><code>var oMyBlob = new Blob([content], { type : "text/plain", endings: "transparent"});
  window.saveAs(oMyBlob, "filename.txt");
  </code></pre>
  
  <p>Either way, whatever i use (if BlobBuilder which is deprecated or Blob), the newLines aren't being displayed, everything is saved under the same line of the text file.</p>
  
  <p>Do you guys know why this is happening? Tried using different ContentTypes:
  text/plain, text/enricher, text/html...</p>
  
  <p>None of this seems to work with the newLines.
  If I make an "alert(data)" that i want to save in the file, the newLines are there.
  When I use this library, looks like it parses the newLines or something, dunno :(
  Tried another charsets as well..</p>
  
  <p>Thanks in advance.</p>