Class: HTML5::XHTMLSerializer

Inherits:
HTMLSerializer show all
Defined in:
lib/html5/serializer/xhtmlserializer.rb

Constant Summary collapse

DEFAULTS =
{
  :quote_attr_values           => true,
  :minimize_boolean_attributes => false,
  :use_trailing_solidus        => true,
  :escape_lt_in_attrs          => true,
  :omit_optional_tags          => false,
  :escape_rcdata               => true
}

Instance Method Summary collapse

Methods inherited from HTMLSerializer

#escape, serialize, #serialize, #serialize_error

Constructor Details

#initialize(options = {}) ⇒ XHTMLSerializer

Returns a new instance of XHTMLSerializer.



15
16
17
# File 'lib/html5/serializer/xhtmlserializer.rb', line 15

def initialize(options={})
  super(DEFAULTS.clone.update(options))
end