[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]What's Installed
 [Expand]Common Concepts
 [Collapse]ASP.NET WebForms Controls
   Getting Started
  [Expand]Grid View
  [Expand]Tree List
  [Expand]Card View
  [Expand]Chart Control
  [Expand]Pivot Grid
  [Expand]Rich Text Editor
  [Expand]Site Navigation and Layout
  [Collapse]HTML Editor
    Deployment of ASPxHtmlEditor
    Main Features
    Getting Started
    ASPxHtmlEditor Designer
    [Expand]View Modes
    [Expand]Get and Set HTML
     Context Menu
    [Collapse]Content Filtering and Validation
     [Expand]HTML Validation
      Content Element Filtering
      Paste Formatting
      Content Validation
     Searching Content
     Client-Side Commands
     Keyboard Shortcuts
     Import and Export
     Support for SharePoint
   [Expand]Visual Elements
  [Expand]Vertical Grid
  [Expand]Data Editors
  [Expand]Docking and Popups
  [Expand]File Management
  [Expand]Data and Image Navigation
  [Expand]Multi-Use Site Controls
  [Expand]Spell Checker
  [Expand]Query Builder
 [Expand]ASP.NET MVC Extensions
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Content Element Filtering

The ASPxHtmlEditor allows you to automatically filter the content elements using the following properties:

You can specify filter rules for the following elements: tags, attributes, and style attributes.

The ASPxHtmlEditor control provides a property listing filtered elements and a property specifying the filter mode for every element type.

Set the filter mode properties to one of the following values:

  • WhiteList - Allow and maintain specified elements; other elements are removed.
  • BlackList - Prohibit and remove specified elements; other elements are maintained.

Expanded Example

This code sample demonstrates how to specify the following content element filtering settings:

  • All cellspacing and cellpadding attributes should be removed from the editor's content.
  • All tags except a, p, span, img, ul, li, table, tr, and td, should be removed from the editor content.

View the Demo

Refer to Content Element Filtering to see this feature in action.

Is this topic helpful?​​​​​​​