Consider the line: ` ( ?
Javascript escape() encodes it like this:
escape("` ( ?") "%60%20%28%20%3F"
How can I achieve the same effect in Ruby? Nothing trying to work:
[Dev]> CGI.escape("` ( ?") => "%60+%28+%3F" [Dev]> URI.encode("` ( ?") => "%60%20(%20?" [Dev]> Addressable::URI.encode("` ( ?") => "%60%20(%20?"
source share