HtmlSanitizer by Michael Ganss

<PackageReference Include="HtmlSanitizer" Version="6.0.409-beta" />

 RemovingAttributeEventArgs

Provides data for the RemovingAttribute event.
public IAttr Attribute { get; }

Gets or sets the attribute to be removed.

public RemoveReason Reason { get; }

Gets or sets the reason why the attribute will be removed

public IElement Tag { get; }

Gets or sets the tag containing the attribute to be removed.

public RemovingAttributeEventArgs(IElement tag, IAttr attribute, RemoveReason reason)

Initializes a new instance of the RemovingAttributeEventArgs class.