menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SanitizeAttribute - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SanitizeAttribute

    Provides information about SanitizeAttribute items added in the AdditionalSanitizeAttributes.

    Inheritance
    System.Object
    SanitizeAttribute
    Namespace: Syncfusion.Blazor.RichTextEditor
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class SanitizeAttribute : Object
    Remarks

    This class provides functionality to define and manage attributes that should be sanitized to ensure safe content within the RichTextEditor.

    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 attribute name 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 elements.

    Remarks

    The Selector property enables targeted removal of attributes to maintain content security and compliance.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved