A carriage return in a text area token will break Javascript code.

Example:
Text area field "text_area_fld" contains:
This is line one
This is line two
When I use the token in a Javascript function, the carriage return is breaking the code:
var astring = "{!text_area_fld}";
Resolves to:
var astring = "This is line one
This is line two";
...which produces a syntax error because there's a carriage return..
I need it to resolve to something like this:
var astring = "This is line one This is line two";
Any suggestions on how I could handle a case like this?

You have posted to a forum that requires a moderator to approve posts before they are publicly available.