John Antoni Griffiths home archive downloads

Escaping in Ruby

Really simple example for escaping your strings

require 'uri'
str = URI.escape(str) if str.length > 0
blog comments powered by Disqus
Fork me on GitHub