Class SanitizeAttribute
Provides information about the SanitizeAttribute items added in the AdditionalSanitizeAttributes.
Inheritance
Namespace: Syncfusion.Blazor.RichTextEditor
Assembly: Syncfusion.Blazor.dll
Syntax
public class SanitizeAttribute : Object
Constructors
SanitizeAttribute()
Declaration
public SanitizeAttribute()
Properties
Attribute
Gets or sets the name of the attribute to be removed from the elements identified by the Selector.
Declaration
public string Attribute { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string representing the name of the attribute to be removed. |
Remarks
The Attribute
property specifies which attribute will be removed from the elements identified by the Selector
.
This helps in enhancing security by removing potentially dangerous or unnecessary attributes from specific elements in the content.
Selector
Gets or sets the selector used to identify the elements from which the specified Attribute should be removed.
Declaration
public string Selector { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string representing the selector used to identify the elements. |
Remarks
The Selector
property allows you to specify which elements in the Rich Text Editor's content should have attributes removed.