/// <summary> /// Instantiates an HtmlParser element and calls the parsing function on the given input string /// </summary> /// <param name="htmlString"> /// Input string of pssibly badly-formed Html to be parsed into well-formed Html /// </param> /// <returns> /// XmlElement rep /// </returns> internal static XmlElement ParseHtml(string htmlString) { HtmlParser htmlParser = new HtmlParser(htmlString); XmlElement htmlRootElement = htmlParser.ParseHtmlContent(); return htmlRootElement; }