Sha256: c7597b54a9a6adcf29baab93f498c34c9c2858ec5e34ee18c1cf03f7f6f97f21

Contents?: true

Size: 325 Bytes

Versions: 16

Compression:

Stored size: 325 Bytes

Contents

module Aquarium
  module Utils
    module HtmlEscaper
      def self.escape message
        do_escape message
      end
      def escape message
        HtmlEscaper.do_escape message
      end
  
      private
      def self.do_escape message
        message.gsub(/\</, "&lt;").gsub(/\>/, "&gt;")
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
aquarium-0.7.3 lib/aquarium/utils/html_escaper.rb
aquarium-0.7.1 lib/aquarium/utils/html_escaper.rb
aquarium-0.5.1 lib/aquarium/utils/html_escaper.rb
aquarium-0.4.4 lib/aquarium/utils/html_escaper.rb
aquarium-0.1.7 lib/aquarium/utils/html_escaper.rb
aquarium-0.1.8 lib/aquarium/utils/html_escaper.rb
aquarium-0.3.0 lib/aquarium/utils/html_escaper.rb
aquarium-0.1.0 lib/aquarium/utils/html_escaper.rb
aquarium-0.4.0 lib/aquarium/utils/html_escaper.rb
aquarium-0.4.1 lib/aquarium/utils/html_escaper.rb
aquarium-0.4.2 lib/aquarium/utils/html_escaper.rb
aquarium-0.4.3 lib/aquarium/utils/html_escaper.rb
aquarium-0.3.1 lib/aquarium/utils/html_escaper.rb
aquarium-0.1.5 lib/aquarium/utils/html_escaper.rb
aquarium-0.1.6 lib/aquarium/utils/html_escaper.rb
aquarium-0.2.0 lib/aquarium/utils/html_escaper.rb