Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v2_1_10) is shown here.
unescape(str, escaped = @regexp[:ESCAPED])
public
Args
str |
String to remove escapes from
|
unsafe |
Regexp to apply. Defaults to
self.regexp[:ESCAPED]
|
Removes escapes from str
# File lib/uri/common.rb, line 330
def unescape(str, escaped = @regexp[:ESCAPED])
str.gsub(escaped) { [$&[1, 2].hex].pack('C') }.force_encoding(str.encoding)
end