html_escape(s)
Class Public methods
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?
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?
Please login to continue.