AngleSharp by AngleSharp

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

 HtmlParserOptions

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

Prevents the tokenizer from tracking the position of elements.

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.

Gets or set the delegate which determines if an attribute should be emitted.

public bool SkipCDATA { get; set; }

Should the tokenizer skip CDATA text tokens.

public bool SkipComments { get; set; }

Should the tokenizer skip comment tokens.

public bool SkipDataText { get; set; }

Should the tokenizer skip data text tokens.

public bool SkipPlaintext { get; set; }

Should the tokenizer skip plaintext tokens.

public bool SkipProcessingInstructions { get; set; }

Should the tokenizer skip processing instruction tokens.

public bool SkipRawText { get; set; }

Should the tokenizer skip raw text tokens.

public bool SkipRCDataText { get; set; }

Should the tokenizer skip RCDATA text tokens.

public bool SkipScriptText { get; set; }

Should the tokenizer skip script text tokens.