you can use replace
like this:
text = text.replace(/\n/g, "\r\n");
var data = new Blob([text], {type: 'text/plain'});
you can use replace
like this:
text = text.replace(/\n/g, "\r\n");
var data = new Blob([text], {type: 'text/plain'});