# File lib/web.rb, line 266 def Web.unescape(string) return nil unless string string.tr('+', ' ').gsub(/((?:%[0-9a-fA-F]{2})+)/n) do [$1.delete('%')].pack('H*') end end