views:

45

answers:

2

Hi,

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 doing the breaks! How can I fix this?

+2  A: 

You need to send a literal line break, not an escape sequence.

David Dorward
A: 

Thank you David,

this worked...

str_replace('\n', "
", $text);

Billy