html5csv icon indicating copy to clipboard operation
html5csv copied to clipboard

download does no escaping

Open macrojames opened this issue 8 years ago • 0 comments

according to html5csv.js#L984 there is no escaping for double quotes.

A dirty hotfix was for(i=0,l=rows.length; i<l; ++i) csvString += '"'+rows[i].map(function(e){return e.replace(/"/g, '""')}).join('","')+'"'+"\n";

macrojames avatar Sep 22 '16 19:09 macrojames