diff options
Diffstat (limited to 'lib/erb/util.rb')
-rw-r--r-- | lib/erb/util.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/erb/util.rb b/lib/erb/util.rb index 9ba4583f82..97f5abbba0 100644 --- a/lib/erb/util.rb +++ b/lib/erb/util.rb @@ -21,14 +21,14 @@ module ERB::Util # # is a > 0 & a < 10? # - unless method_defined?(:html_escape) # for JRuby + unless defined?(ERB::Util.html_escape) # for JRuby def html_escape(s) CGI.escapeHTML(s.to_s) end + module_function :html_escape end alias h html_escape module_function :h - module_function :html_escape # # A utility method for encoding the String _s_ as a URL. |