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.
2.1m questions
2.1m answers
60 comments
57.0k users