How to get rid of escaped characters

How do you get rid of unwanted escape characters that rails adds to a
user inputted string?

Thanks

On Jan 30, 4:20 pm, Cheri R. [email protected] wrote:

How do you get rid of unwanted escape characters that rails adds to a
user inputted string?

Thanks

Posted viahttp://www.ruby-forum.com/.

should be able to call the String#strip! method on it to remove
newline characters, if that’s what you’re talking about.

Cheers,
Chris

On Jan 30, 5:20 pm, Cheri R. [email protected] wrote:

How do you get rid of unwanted escape characters that rails adds to a
user inputted string?

Have a look at CGI.unescape()