Skip to content
instance method

CGI::Escape#unescape

(::string str, ?::encoding encoding) -> ::String
unescape(string, encoding = @@accept_charset)

URL-decode an application/x-www-form-urlencoded string with encoding(optional).

Example
string = CGI.unescape("%27Stop%21%27+said+Fred")
   # => "'Stop!' said Fred"