module ERB::Escape
A subset of ERB::Util
. Unlike ERB::Util#html_escape, we expect/hope Rails will not monkey-patch ERB::Escape#html_escape
.
Public Class Methods
Source
# File lib/erb/util.rb, line 22 def html_escape(s) CGI.escapeHTML(s.to_s) end
Private Instance Methods
Source
# File lib/erb/util.rb, line 22 def html_escape(s) CGI.escapeHTML(s.to_s) end