tag(name, options = nil, open = false, escape = true)
Instance Public methods
Returns an empty HTML tag of type
name which by default is XHTML compliant. Set
open to true to create an open tag compatible with HTML 4.0 and below. Add HTML attributes by passing an attributes hash to
options. Set escape to false to disable attribute
value escaping.
Options
You can use symbols or strings for the attribute names.
Use true with boolean attributes that can render with no
value, like disab