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.
1.4m articles
1.4m replys
5 comments
57.0k users