Write new line character (\n) in csv cell?

180 Views Asked by At

I am trying to create a csv file using npm package csv-writer. I read data from oracle database and some of the table columns contain line feed i-e CHR(10) and carriage return i-e CHAR(13). This disturbs csv format. I want to store these characters in same csv cell in the same csv line. Is there any way I can handle this without replacing these characters before writing csv and than replace back. If there is any JavaScript csv package that handles this it would be much appreciated if some body can include an example of it. Thanks!

0

There are 0 best solutions below