I am using the following to get a web page which works fine
public static HtmlDocument GetWebPageFromUrl(string url)
{
var hw = new HtmlWeb();
return hw.Load(url);
}
But how to I spit the entire contents of the HTML out from the HtmlDocument into a string?
I tried HtmlDocument.ToString() but that doesn't give me all the HTML in the document? Any ideas?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…