HtmlSanitizer by Michael Ganss

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

 RemovingCssClassEventArgs

Provides data for the RemovingCssClass event.
public string CssClass { get; }

Gets the CSS class to be removed.

public RemoveReason Reason { get; }

Gets the reason why the CSS class will be removed.

public IElement Tag { get; }

Gets the tag containing the CSS class to be removed.

public RemovingCssClassEventArgs(IElement tag, string cssClass, RemoveReason reason)

Provides data for the RemovingCssClass event.