Skip to main content

HtmlSettingsAttribute.AttributesFilter Property

Gets or sets the attribute elements that will be filtered according to the specified filter mode.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.1.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public string AttributesFilter { get; set; }

Property Value

Type Description
String

A String value that contains the attribute elements.

Remarks

HtmlEditor provides you with the capability to filter content elements. You can specify filter rules for tags, attributes, and style attributes.

Use the AttributesFilter property to specify a comma-separated list of attribute elements that will be maintained or removed (based on the HtmlSettingsAttribute.AttributeFilterMode property value) from the editor content.

[HtmlSettings(AttributeFilterMode = HtmlEditorFilterMode.WhiteList, AttributesFilter = "align, style")]
See Also