You have a textarea and you're rendering the text you get from it on a page.

Textarea Input:

This is on the first line.

This is on the second line.

This is on the third.

Browser Output:

This is on the first line.This is on the second line.This is on the third.

Now that sucks.


@string = $F(TextAreaId).value
@string = CGI.unescape(@string).gsub(/\n/,"<br />")


And you're done!

PS: $() is prototype.js for getElementById()

"They make you drink your blood,
and tear yourself to pieces!"
Accept - Balls To The Wall