matteofigus / nice-json2csv

A node.js tool for converting json to csv
MIT License
39 stars 10 forks source link

Certain character breaks CSV delimiter #7

Open jerrydeng opened 9 years ago

jerrydeng commented 9 years ago

When rendering CSV if the cell string contained in the double quotes contain some complex combination (e.g. \r \n , " '), it breaks the delimiter and ended up with delimiter being at the wrong spot. Is there any options to specify that I can use to wrap all that in or escape those characters?

jerrydeng commented 9 years ago

I ended up using string library to clean it up.

matteofigus commented 9 years ago

I think it would be very useful if you could describe the bug in the form of an example:

Thanks Matteo