Hey, the CSV export is doing a simple join(',')
on each row and a join('\n')
on all rows.
CSV actually supports (depending on the flavour different things including specifying the delimiter, having quoted fields, even having newlines in quoted fields and so on and so on.
To be useful I would at least say that we need an option to quote all fields and therefore "escape" the "
inside of a field..
Example:
const csvData = 'data:text/csv;charset=utf-8,' + at.data.map((e) => '"' + e.map((d) => d.replaceAll('"', '""')).join('","') + '"').join('\n');
It would be probably nice to expose a generic options element to the buttons: [{ export: {} }]
element, where you can configure this.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too