Re: PHP "stripclashes" equivalent in Ruby/Rails?

Ben Knight
Sun, 22 Jul 2007 19:08:42 -0000

Hi, Jamal.  I had to remove the first 2 delete calls since it was
deleting all my "r" and "n" characters (e.g. notes became
otes).  I
wasn''t sure how I could delete carriage-returns and new-lines instead
of
r and n characters.?  For example, I tried both, \\r and \r with delete.

Anyway, for now, I think just removing back-slashes will do the trick
based on this description of the PHP function (and what I think, is our
requirement :-)

  http://us.php.net/stripcslashes

Thanks for all your help!


Jamal Soueidan wrote:

>
> If you just want to remove them, then you can use the delete function as
> you did.
>
> But you must understand that
>
> \n is like
> \\ is like \
> \t is like TABKEY
>
> So you might want to think about that :)