Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > How to get rid of escaped characters

Reply
Thread Tools

How to get rid of escaped characters

 
 
Cheri Ruska
Guest
Posts: n/a
 
      01-30-2008
How do you get rid of unwanted escape characters that rails adds to a
user inputted string?

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

 
Reply With Quote
 
 
 
 
kruse.christopher@gmail.com
Guest
Posts: n/a
 
      01-31-2008
On Jan 30, 4:20 pm, Cheri Ruska <(E-Mail Removed)> 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
 
Reply With Quote
 
 
 
 
Chris Hulan
Guest
Posts: n/a
 
      01-31-2008
On Jan 30, 5:20 pm, Cheri Ruska <(E-Mail Removed)> wrote:
> How do you get rid of unwanted escape characters that rails adds to a
> user inputted string?


Have a look at CGI.unescape()
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Convert Raw Text Escaped Characters to Characters nicholas.wakefield@gmail.com Java 2 07-11-2005 09:17 PM
Minidom output of XML escaped characters Derek Basch Python 2 03-25-2005 05:25 PM
Translating escaped characters Henrik S. Hansen Python 2 11-02-2004 07:12 AM
Translate escaped characters in a string Ben Finney Python 2 04-03-2004 07:46 AM



Advertisments