I am creating a guestbook and I use javascript to pre-process the information fields to make sure they are filled correctly. How do I take out all of the carriage returns from a comment field so that when I save it to a file it doesn't enter down a bunch if someone types:
Test
Test'
Test.
????
thankyou
Test
Test'
Test.
????
thankyou