parserino.html.serializer
HTML serialization ("serializing HTML fragments" in the HTML spec).
The output goes to any output range of const(char)[], through a small buffer, so the sink receives a few large chunks.
enum Serialize
Types 1
enumSerialize
What serialize writes
Nodeonly the node: the start tag for elements, the text for texts, ...
Treethe node and its descendants (for a document: its children)
Childrenonly the descendants (innerHTML)
Functions 2
fn
void serialize(Sink)(const(DomNode) * node, ref Sink sink, Serialize what)Serialize `node` to `sink` (an output range of `const(char)[]`)fn
void serializePretty(Sink)(const(DomNode) * node, ref Sink sink)Serialize `node` indented, to read it: each block element on its own line, two spaces for each level; an element with only text and inline elements (`<li>Milk <b>2</b></li>`) stays on one line. Whi...