insert carriage return
Hi,
I have this sample string:
var str = "There once was a man from Peru,\nHe fell asleep in his canoe,\netc...";
And I'm putting that string into a textarea, but I want it so that when the string in put into the text area, it no longer has the '\n' and are replaced by actualy carriage returns. How does one go about to do that?
Thanks
|