Sha256: 43981c9e91492d0015778aa9cc1c471992459215a16a31c3fcf1d9f1579501e9

Contents?: true

Size: 251 Bytes

Versions: 5

Compression:

Stored size: 251 Bytes

Contents

require 'cgi'

module DebugBar
  module Ext
    module String

      def html_escape
        return CGI.escapeHTML(self)
      end

    end
  end
end


unless( String.methods.include?(:html_escape) )
  String.send(:include, DebugBar::Ext::String)
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
debug-bar-1.2.0 lib/debug-bar/ext/string.rb
debug-bar-1.1.1 lib/debug-bar/ext/string.rb
debug-bar-1.1.0 lib/debug-bar/ext/string.rb
debug-bar-1.0.1 lib/debug-bar/ext/string.rb
debug-bar-1.0.0 lib/debug-bar/ext/string.rb