IHtmlParser
Represents the interface of an HTML parser.
using AngleSharp.Browser;
using AngleSharp.Dom;
using AngleSharp.Html.Dom;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
namespace AngleSharp.Html.Parser
{
public interface IHtmlParser : IParser, IEventTarget
{
IHtmlDocument ParseDocument(string source);
IHtmlDocument ParseDocument(Stream source);
INodeList ParseFragment(string source, IElement contextElement);
Task<IHtmlDocument> ParseDocumentAsync(string source, CancellationToken cancel);
Task<IHtmlDocument> ParseDocumentAsync(Stream source, CancellationToken cancel);
Task<IDocument> ParseDocumentAsync(IDocument document, CancellationToken cancel);
}
}