Skip to content

Instantly share code, notes, and snippets.

@kinopyo
Created December 8, 2011 02:36
Show Gist options
  • Save kinopyo/1445867 to your computer and use it in GitHub Desktop.
Save kinopyo/1445867 to your computer and use it in GitHub Desktop.
Ruby: How to escape url
require 'cgi'
CGI.escape(url)
@helloqidi
Copy link

thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment