public static HtmlDocument Parse(string html) { using (var htmlParser = new HtmlParser(html)) { htmlParser.Parse(); return htmlParser._htmlDocument; } }
public static HtmlDocument Parse(string html) { var htmlParser = new HtmlParser(html); var htmlDocument = new HtmlDocument() { Elements = htmlParser._elements }; return htmlDocument; }