Esempio n. 1
0
        // static parse functions below
        /// <summary>
        /// Parse HTML into a Document.
        /// </summary>
        /// <param name="html">HTML to parse</param>
        /// <param name="baseUri">base URI of document (i.e. original fetch location), for resolving relative URLs.</param>
        /// <returns>parsed Document</returns>
        public static Document Parse(string html, string baseUri)
        {
            HtmlTreeBuilder treeBuilder = new HtmlTreeBuilder();

            return(treeBuilder.Parse(html, baseUri, ParseErrorList.NoTracking()));
        }
Esempio n. 2
0
 // static parse functions below
 /// <summary>
 /// Parse HTML into a Document. 
 /// </summary>
 /// <param name="html">HTML to parse</param>
 /// <param name="baseUri">base URI of document (i.e. original fetch location), for resolving relative URLs.</param>
 /// <returns>parsed Document</returns>
 public static Document Parse(string html, string baseUri)
 {
     HtmlTreeBuilder treeBuilder = new HtmlTreeBuilder();
     return treeBuilder.Parse(html, baseUri, ParseErrorList.NoTracking());
 }