HtmlSanitizer by Michael Ganss

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

 RemovingCssClassEventArgs

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

Gets or sets the CSS class to be removed.

public RemoveReason Reason { get; }

Gets or sets the reason why the CSS class will be removed.

public IElement Tag { get; }

Gets or sets the tag containing the CSS class to be removed.

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

Initializes a new instance of the RemovingCssClassEventArgs class.