AngleSharp by Florian Rappl

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

 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 IsScripting { get; set; }

Gets or sets if scripting is allowed.