Contains functionality for HTML-escaping strings.
Returns the HTML-escaped representation of the given string. Only `&`, `<`, `>` and `“` are escaped.
@param [String] string The string to escape
@return [String] The escaped string
# File lib/nanoc3/helpers/html_escape.rb, line 13 def html_escape(string) string.gsub('&', '&'). gsub('<', '<'). gsub('>', '>'). gsub('"', '"') end
Generated with the Darkfish Rdoc Generator 2.