[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

How to get rid of escaped characters

Cheri Ruska

1/30/2008 10:20:00 PM

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

Thanks
--
Posted via http://www.ruby-....

2 Answers

kruse.christopher

1/31/2008 3:58:00 AM

0

On Jan 30, 4:20 pm, Cheri Ruska <liquid_ra...@yahoo.com> wrote:
> How do you get rid of unwanted escape characters that rails adds to a
> user inputted string?
>
> Thanks
> --
> Posted viahttp://www.ruby-....

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

Chris Hulan

1/31/2008 3:41:00 PM

0

On Jan 30, 5:20 pm, Cheri Ruska <liquid_ra...@yahoo.com> wrote:
> How do you get rid of unwanted escape characters that rails adds to a
> user inputted string?

Have a look at CGI.unescape()