Skip to content

Instantly share code, notes, and snippets.

@hrstt
Created June 25, 2011 13:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hrstt/1046500 to your computer and use it in GitHub Desktop.
Save hrstt/1046500 to your computer and use it in GitHub Desktop.
escape url strings for facebook api spesification.
# escape url strings for facebook api spesification.
def facebook_escape(url)
url.gsub('/', '%2F').gsub(':','%3A')
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment