Type:
Module
Constants:
BOOLEAN_ATTRIBUTES : %w(disabled readonly multiple checked autobuffer autoplay controls loop selected hidden scoped async defer reversed ismap seamless muted required autofocus novalidate formnovalidate open pubdate itemscope allowfullscreen default inert sortable truespeed typemustmatch).to_set
PRE_CONTENT_STRINGS : { :textarea => "\n" }

Provides methods to generate HTML tags programmatically when you can't use a Builder. By default, they output XHTML compliant tags.

content_tag

content_tag(name, content_or_options_with_block = nil, options = nil, escape = true, &block) Instance Public

2015-06-20 00:00:00
escape_once

escape_once(html) Instance Public methods Returns an escaped version of html

2015-06-20 00:00:00
cdata_section

cdata_section(content) Instance Public methods Returns a CDATA section with

2015-06-20 00:00:00
tag

tag(name, options = nil, open = false, escape = true) Instance Public methods Returns

2015-06-20 00:00:00