AngleSharp by AngleSharp

<PackageReference Include="AngleSharp" Version="1.0.3" />

 HtmlParserOptions

public struct HtmlParserOptions
Contains a number of options for the HTML parser.
public bool IsAcceptingCustomElementsEverywhere { get; set; }

Gets or sets if custom elements can be used everywhere. Otherwise, custom elements can only be used in locations specified by the official W3C spec (e.g., in the body).

public bool IsEmbedded { get; set; }

Gets or sets if the document is embedded.

public bool IsKeepingSourceReferences { get; set; }

Gets or sets if references to the original source document should be kept on the elements in form of their tokens.

public bool IsNotConsumingCharacterReferences { get; set; }

Gets or sets if the parsing of character references should be avoided. Note: With this option there is no way to determine from AngleSharp what character references have been fully valid vs. invalid.

public bool IsNotSupportingFrames { get; set; }

Gets or sets if frames should not be supported. Once set this will ignore frame elements and respect noframes elements.

public bool IsPreservingAttributeNames { get; set; }

Gets or sets if attribute names should not be normalized. Usually, attribute names will be only seen lower-cased. When this option is activated, the names will be taken as-is.

public bool IsScripting { get; set; }

Gets or sets if scripting is allowed.

public bool IsStrictMode { get; set; }

Gets or sets if errors should be treated as exceptions.

public bool IsSupportingProcessingInstructions { get; set; }

Gets or sets if XML processing instructions should be parsed into DOM nodes.

public Action<IElement, TextPosition> OnCreated { get; set; }

Gets or sets the callback once a new element was created.