Document.toString

string toString() const

Return document as html string

void toString(scope void delegate(const(char)[]) sink) const

Write the document as html to a sink

void toString(W)(ref W writer) if (isOutputRange!(W, const(char)[]) && !is(W : void delegate(const(char)[]))) const

ditto