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 via
http://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()
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
How to get rid of escaped characters
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password