Sha256: 975916d8c094fd1a97434a64faa955267e5c111e69581d789ba9d6eee85b99ef

Contents?: true

Size: 625 Bytes

Versions: 3

Compression:

Stored size: 625 Bytes

Contents

require 'escape_utils/escape_utils'
require 'escape_utils/version' unless defined? EscapeUtils::VERSION

module EscapeUtils
  extend self

  # turn on/off the escaping of the '/' character during HTML escaping
  # Escaping '/' is recommended by the OWASP - http://www.owasp.org/index.php/XSS_(Cross_Site_Scripting)_Prevention_Cheat_Sheet#RULE_.231_-_HTML_Escape_Before_Inserting_Untrusted_Data_into_HTML_Element_Content
  # This is because quotes around HTML attributes are optional in most/all modern browsers at the time of writing (10/15/2010)
  @@html_secure = true

  autoload :HtmlSafety, 'escape_utils/html_safety'
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
escape_utils-0.3.1 lib/escape_utils.rb
escape_utils-0.3.0 lib/escape_utils.rb
escape_utils-0.2.4 lib/escape_utils.rb