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

    Exporting string to csv keeping commas and new lines

    nikos101 Level 2

      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.