示例#1
0
        public HtmlDocument LoadHtml(string uri)
        {
            string sourceCode;
            var    htmlDocument = new HtmlDocument();

            sourceCode = HtmlDecoder.getSourceCode(uri);
            if (!string.IsNullOrEmpty(sourceCode))
            {
                htmlDocument.LoadHtml("@" + sourceCode); // string containing the HTML content
                return(htmlDocument);
            }
            return(null);
        }