Created
June 25, 2011 13:40
-
-
Save hrstt/1046500 to your computer and use it in GitHub Desktop.
escape url strings for facebook api spesification.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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