method

escape_skipping_slashes

rails latest stable - Class: CGI

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.0.9) is shown here.

escape_skipping_slashes(str)
public

No documentation available.

# File activesupport/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb, line 5
    def self.escape_skipping_slashes(str)
      str = str.join('/') if str.respond_to? :join
      str.gsub(/([^ \/a-zA-Z0-9_.-])/) do
        "%#{$1.unpack('H2' * $1.bytesize).join('%').upcase}"
      end.tr(' ', '+')
    end