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.
Required Ruby Version
None
Authors
jarrett
Versions
-
0.1.4
-
source
- 0.1.4 source March 21, 2010 (10 KB)
-
-
0.1.3
-
source
- 0.1.3 source February 26, 2010 (10 KB)
-
-
0.1.2
-
source
- 0.1.2 source February 26, 2010 (10 KB)
-
-
0.1.1
-
source
- 0.1.1 source February 26, 2010 (10 KB)
-