Sha256: f5c666c14f17a14b905bbf7e832703ff08900401d4cba74f4ce6de1f1cfe1c10
Contents?: true
Size: 667 Bytes
Versions: 4
Compression:
Stored size: 667 Bytes
Contents
# encoding: utf-8 require 'escape_utils/escape_utils' require 'escape_utils/version' unless defined? EscapeUtils::VERSION EscapeUtils.send(:extend, EscapeUtils) module EscapeUtils # 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
escape_utils-0.2.3 | lib/escape_utils.rb |
escape_utils-0.2.2 | lib/escape_utils.rb |
escape_utils-0.2.1 | lib/escape_utils.rb |
escape_utils-0.2.0 | lib/escape_utils.rb |