Skip to main content

HtmlSettingsAttribute.TagFilterMode Property

Specifies the filtering mode for tag elements.

Namespace: DevExpress.Web.Mvc

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

NuGet Package: DevExpress.Web.Mvc5

Declaration

public HtmlEditorFilterMode TagFilterMode { get; set; }

Property Value

Type Description
HtmlEditorFilterMode

One of the HtmlEditorFilterMode enumeration values.

Available values:

Name Description
BlackList

Specified elements are prohibited and will be removed; other elements will be maintained.

WhiteList

Specified elements are allowed and will be maintained; other elements will be removed.

Remarks

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

Use the TagFilterMode property to specify the filtering mode that is applied to the tag elements listed in the HtmlSettingsAttribute.TagsFilter property.

[HtmlSettings(TagFilterMode = HtmlEditorFilterMode.WhiteList, TagsFilter = "DIV, SPAN")]
See Also