Tuesday 15 September 2015

urlencode - Converting url encoded strings into plain text with ruby -


I am writing a script to remove the search term from the URL, but I need to make them human and many of them From the YouTube encoded ones, the characters in them were thinking that something in Ruby was created in a gem or function so that it could be converted into plain text? Or will I have to write my own work to clear them?

You can use for URL-decoding:

  Required 'cgi' string = cgi :: unescape ("1 +% 2B + 2 +% 3D + 3") # = & gt; "1 + 2 = 3"    

No comments:

Post a Comment