-
String to HtmlDocument
public System.Windows.Forms.HtmlDocument GetHtmlDocument(string html) { WebBrowser browser = new WebBrowser(); browser.ScriptErrorsSuppressed = true; browser.DocumentText = html; browser.Document.OpenNew(true); browser.Document.Write(html); browser.Refresh(); return browser.Document; }
- 【C#】[网络]WebBrowser网页操作之提取获取元素和标签(完整篇)
原文地址:https://www.cnblogs.com/bycnboy/p/9051571.html
时间: 2024-11-25 15:41:08