I am trying to display a data into textarea which is fetched from tables that i have submitted via another form. The issue comes up when a new line is entered.
The data getting displayed in the textarea is as
lin1\r\nlin2
it should be like
lin1
lin2
I have tried nl2br but it does not work as expected. How can i make things optimized. Thanks
. Take a look at this: http://stackoverflow.com/questions/863779/textarea-line-breaks-javascript – Kevinvhengst Oct 24 '13 at 13:48