1.添加引用.net 引用Microsoft.mshtml
WebClient wc = new WebClient();wc.Encoding = Encoding.UTF8;string str = wc.DownloadString(@”//www.jb51.net/web/73969.html”);
HTMLDocumentClass doc = new HTMLDocumentClass();//获取html对象doc.designMode = “on”; //不让解析引擎去尝试运行javascriptdoc.IHTMLDocument2_write(str);把html 文档写入h