Method: Waitress::QueryParser.unescape
- Defined in:
- lib/waitress/parse/query.rb
.unescape(str, enc = Encoding::UTF_8) ⇒ Object
Unescape a HTTP URL to regular text. e.g. %20 becomes a space (“ ”)
10 11 12 |
# File 'lib/waitress/parse/query.rb', line 10 def self.unescape str, enc=Encoding::UTF_8 URI.decode_www_form_component(str, enc) end |