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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With