module Nanoc::Helpers # Nanoc::Helpers::HTMLEscape contains functionality for HTML-escaping # strings. module HTMLEscape # Returns the HTML-escaped representation of the given string. Only &, <, # > and " are escaped. def html_escape(string) string.gsub('&', '&'). gsub('<', '<'). gsub('>', '>'). gsub('"', '"') end alias h html_escape end end # Include by default include Nanoc::Helpers::HTMLEscape