Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我将一个文件加载到 HtmlDocument 中,然后需要获取该对象的完整来源:
HtmlDocument myDoc; myDoc.LoadHtml(@"c:\myfile.html")
我如何获得 myDoc 的全部内容?
我试过了:
var retHtml = myDoc.DocumentNode.OuterHTML;
但这只是返回文件的路径