5 Replies Latest reply: May 3, 2012 6:17 AM by sinious RSS

    Exporting string to csv keeping commas and new lines

    nikos101 Community Member

      Hi there,


      I am exporting string to csv and have been removeing new lines and commas like so


      thing.toString().replace(/\n/g, '').replace(',','') ;


      how can I do this iwthout losing the line breaks and commas? I can't have them in atm because messes up the csv.