def h(content)
      if content.respond_to?(:html_safe?) && content.html_safe?
        content
      else
        raw(CGI.escapeHTML(content.to_s))
      end
    end
def h(content)
      if content.respond_to?(:html_safe?) && content.html_safe?
        content
      else
        raw(CGI.escapeHTML(content.to_s))
      end
    end
Returns an HTML-escaped version of its parameter. Leaves the output
 string untouched. This method is idempotent: h(h(text)) will not
 double-escape text. This means that it is safe to do something like
 text(h("2<4")) -- it will produce "2&lt;4", not "2&amp;lt;4".