HtmlSanitizer by Michael Ganss

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

 RemovingAttributeEventArgs

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

Gets the attribute to be removed.

public RemoveReason Reason { get; }

Gets the reason why the attribute will be removed.

public IElement Tag { get; }

Gets the tag containing the attribute to be removed.

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

Provides data for the RemovingAttribute event.