= private = protected
html_escape(s)
A utility method for escaping HTML tag characters in s.
require "erb" include ERB::Util puts html_escape("is a > 0 & a < 10?")
Generates
is a > 0 & a < 10?
# File lib/erb.rb, line 973 def html_escape(s) CGI.escapeHTML(s.to_s) end