Skip to content

Read document as stream #924

@daveaglick

Description

@daveaglick

New Feature Proposal

Description

Right now we can take a document (or node) and write it somewhere using .ToHtml(). What I'd like to do is avoid copying the document to something altogether and pull from the document structure instead. I.e. something like .ReadAsStream(). Then I'll be able to pass around my IHtmlDocument once I've gone to the trouble of parsing it and avoid the allocations and extra work of serializing it back to a string.

Maybe I'm missing how this can be done out of the box? Or perhaps you've got some pointers if I take this on?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions