unescape(str)
public
Synopsis
URI.unescape(str)
Args
str: | Unescapes the string.
|
Usage
require 'uri'
enc_uri = URI.escape("http://example.com/?a=\11\15")
p enc_uri
p URI.unescape(enc_uri)
Show source
def unescape(str)
str.gsub(ESCAPED) do
$&[1,2].hex.chr
end
end