Skip to content
This repository has been archived by the owner on Jun 6, 2021. It is now read-only.

new line character in the cell value #16

Open
jimiwhite1020 opened this issue Jun 5, 2015 · 1 comment
Open

new line character in the cell value #16

jimiwhite1020 opened this issue Jun 5, 2015 · 1 comment

Comments

@jimiwhite1020
Copy link

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:

Thank you for your message. Thanks,

@ideiasfrescas
Copy link

@jimiwhite1020

Below the line that reads

$item = str_replace(''', ''', htmlspecialchars($item, ENT_QUOTES));

add this:

$item = str_replace("\r\n", '
', $item);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants