PureHTML. Serializer
(PureHTML v0.4.0)
View Source
Converts parsed HTML nodes back to HTML strings.
This module implements HTML5 serialization with html5lib-compliant attribute quoting and various output options.
Options
:quote_char- Force"'"or"""for attribute quotes (default: smart quoting):minimize_boolean_attributes- Outputdisabledvsdisabled=disabled(default: true):use_trailing_solidus- Output<br />vs<br>(default: false):escape_rcdata- Escape content in script/style (default: false):strip_whitespace- Collapse whitespace in text nodes (default: false)
Summary
Functions
Serializes a list of parsed HTML nodes to an HTML string.