Sha256: 7e005878b1cb1350f83268cb74c4d23c156ef8377c0fff14794f4968950b5f03

Contents?: true

Size: 180 Bytes

Versions: 1

Compression:

Stored size: 180 Bytes

Contents

module Rack
  module Utils
    def escape_html(html)
      ::EscapeUtils::HtmlSafety.escape_once(html) { |s| CGI.escapeHTML(s) }
    end
    module_function :escape_html
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
escape_utils-1.3.0 lib/escape_utils/html/rack.rb