I am trying to generate a CSV file from form input. Everything works fine, except that I can't get the line breaks in multi-line textarea input to look right when the CSV file is viewed in Excel.
My guess is that I must replace the line break characters in the textarea input string with line break character recognized by Excel, probably using str_replace. The problem is that I don't know for what characters to look and with what to replace. Hope someone can help. Thanks!