↧
Answer by Dyrandz Famador for textarea content inside a .txt file but keep...
you can use replace like this: text = text.replace(/\n/g, "\r\n"); var data = new Blob([text], {type: 'text/plain'}); SEE DEMO
View Articletextarea content inside a .txt file but keep line-breaks
I have some piece of code that saves value of textarea into a local text file. Everything is seems to work fine but I don't want to lose line breaks. Code & fiddle: HTML <textarea...
View Article