I was working on a Flash project, and needed a way to quickly strip the carriage returns out of some XML so I could paste it into the JavaScript that I was using to send the data into the SWF (I know there are better ways.. ) and came up with this code...


(((edited to add that this was an ANCIENT post.. and it's much easier to just use something like mystring = string.split("\n").join(""); )))