示例#1
0
    public HtmlFragment ParseFragment( string html )
    {
      var document = new AP.HtmlDocument();

      document.LoadHtml( html );

      var fragment = new HtmlFragment( this );
      fragment.AddCopies( document.AsDocument().Nodes() );

      return fragment;
    }
示例#2
0
        public HtmlFragment ParseFragment(string html)
        {
            var document = new AP.HtmlDocument();

            document.LoadHtml(html);

            var fragment = new HtmlFragment(this);

            fragment.AddCopies(document.AsDocument().Nodes());

            return(fragment);
        }