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.
[email protected] low health (42/100) — consider alternatives
Get this data programmatically — free, no authentication.
curl https://depscope.dev/api/check/rubygems/sanitize-urlLast updated · 2010-03-21T18:28:32.483Z