I am saving text from a textarea in the database and display it in another textarea. The linebreaks are displayed as \n which should be right, but the textarea is displaying them instead of do开发者_Go百科ing the breaks! How can I fix this?
You need to send a literal line break, not an escape sequence.
Thank you David,
this worked...
str_replace('\n', "
", $text);
精彩评论