How do you get rid of unwanted escape characters that rails adds to a
user inputted string?
Thanks
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()
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs