Example #1
0
 public static HtmlDocument Parse(string html)
 {
     using (var htmlParser = new HtmlParser(html))
     {
         htmlParser.Parse();
         return htmlParser._htmlDocument;
     }
 }
Example #2
0
        public static HtmlDocument Parse(string html)
        {
            var htmlParser = new HtmlParser(html);

            var htmlDocument = new HtmlDocument()
            {
                Elements = htmlParser._elements
            };

            return htmlDocument;
        }