HtmlSanitizer by Michael Ganss

<PackageReference Include="HtmlSanitizer" Version="8.0.723" />

 HtmlSanitizerDefaults

public static class HtmlSanitizerDefaults
Default options.
public static ISet<CssRuleType> AllowedAtRules { get; }

The default allowed CSS at-rules.

public static ISet<string> AllowedAttributes { get; }

The default allowed HTML attributes.

public static ISet<string> AllowedClasses { get; }

The default allowed CSS classes.

public static ISet<string> AllowedCssProperties { get; }

The default allowed CSS properties.

public static ISet<string> AllowedSchemes { get; }

The default allowed URI schemes.

public static ISet<string> AllowedTags { get; }

The default allowed HTML tag names.

public static ISet<string> UriAttributes { get; }

The default URI attributes.