php-export-data
php-export-data copied to clipboard
new line character in the cell value
New lines in the cell value is not working when you open it via excel. It said all new lines characters should be replaced with like this:
<Cell><Data ss:Type="String">Thank you for your message. Thanks,</Data></Cell>
@jimiwhite1020
Below the line that reads
$item = str_replace(''', ''', htmlspecialchars($item, ENT_QUOTES));
add this:
$item = str_replace("\r\n", ' ', $item);