HtmlAgilityPack: Get whole HTML document as string
Does HtmlAgilityPack have the ability to return the whole HTML markup from an HtmlDocument object as a string?
Sure, you can do like this:
HtmlDocument doc = new HtmlDocument();
// call one of the doc.LoadXXX() functions
Console.WriteLine(doc.DocumentNode.OuterHtml);
OuterHtml contains the whole html.