AngleSharp by AngleSharp

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

 HtmlParserOptions

public struct HtmlParserOptions
Contains a number of options for the HTML parser.
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 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.