RubyGems.org

sanitize-url

0.1.2

This gem provides a module called SanitizeUrl, which you can mix-in anywhere you like. It provides a single method: sanitize_url, which accepts a URL and returns one with JavaScript removed. It also prepends the http:// scheme if no valid scheme is found.

installgem install sanitize-url -v 0.1.2
Authors

jarrett

8,727 total downloads 827 for this version
Owners

6148631c6a332d77f1f6cb5e6b382f29

Gemfile
gem "sanitize-url", "~> 0.1.2"
Versions
  1. 0.1.4 March 21, 2010
  2. 0.1.3 February 25, 2010
  3. 0.1.2 February 25, 2010
  4. 0.1.1 February 25, 2010
Development Dependencies
  1. rspec >= 1.3.0