method

escape_skipping_slashes

rails latest stable - Class: ActiveSupport::CoreExtensions::CGI::EscapeSkippingSlashes

Method deprecated or moved

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

escape_skipping_slashes(str)
public

No documentation available.

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