How to get rid of escaped characters

Discussion in 'Ruby' started by Cheri Ruska, Jan 30, 2008.

  1. Cheri Ruska

    Cheri Ruska Guest

    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/.
     
    Cheri Ruska, Jan 30, 2008
    #1
    1. Advertising

  2. Cheri Ruska

    Guest

    On Jan 30, 4:20 pm, Cheri Ruska <> 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
     
    , Jan 31, 2008
    #2
    1. Advertising

  3. Cheri Ruska

    Chris Hulan Guest

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


    Have a look at CGI.unescape()
     
    Chris Hulan, Jan 31, 2008
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    2
    Views:
    770
  2. Ben Finney
    Replies:
    2
    Views:
    341
    Josiah Carlson
    Apr 3, 2004
  3. Henrik S. Hansen

    Translating escaped characters

    Henrik S. Hansen, Nov 1, 2004, in forum: Python
    Replies:
    2
    Views:
    290
    Henrik S. Hansen
    Nov 2, 2004
  4. Derek Basch
    Replies:
    2
    Views:
    462
    Derek Basch
    Mar 25, 2005
  5. Thea
    Replies:
    2
    Views:
    630
Loading...

Share This Page