C
Chris
I'm trying to export data from a MySQL database to an Excel file using
PHP. In one of the fields from the database I have a large text field
that does contain some "\r\n" sequences where a user entered a newline
(in an HTML textarea input box for example). When I export these to
Excel they appear as new rows for each line break in the text field.
I've tried replacing them with just a "\r" or just a "\n" but they
continue to show up. What can I replace it with so that Excell prints
the sequence as a soft-break within the cell (akin to typing ALT-Enter
in Excell)?
Thanks!
Regards,
Chris
PHP. In one of the fields from the database I have a large text field
that does contain some "\r\n" sequences where a user entered a newline
(in an HTML textarea input box for example). When I export these to
Excel they appear as new rows for each line break in the text field.
I've tried replacing them with just a "\r" or just a "\n" but they
continue to show up. What can I replace it with so that Excell prints
the sequence as a soft-break within the cell (akin to typing ALT-Enter
in Excell)?
Thanks!
Regards,
Chris