Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Collapse]ASP.NET WebForms Controls
  [Expand]Reporting
  [Expand]Chart Control
  [Expand]Grid View
  [Expand]Card View
  [Expand]Vertical Grid
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Image and Data Browsing
  [Expand]Docking and Popups
  [Expand]Site Navigation and Layout
  [Expand]File Management
  [Expand]Multi-Use Site Controls
  [Expand]Scheduler
  [Collapse]HTML Editor
    Deployment of ASPxHtmlEditor
    Main Features
    Getting Started
    ASPxHtmlEditor Designer
   [Collapse]Concepts
    [Expand]View Modes
    [Expand]Get and Set HTML
    [Expand]Toolbars
    [Expand]Dialogs
     Context Menu
     Placeholders
    [Collapse]Content Filtering and Validation
     [Collapse]HTML Validation
       HTML Validation Parameters
      Content Element Filtering
      Paste Formatting
      Content Validation
    [Expand]Layout
     Searching Content
     Client-Side Commands
     Keyboard Shortcuts
     Import and Export
     Support for SharePoint
   [Expand]Visual Elements
   [Expand]Examples
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Gauges
  [Expand]Data Editors
  [Expand]Spell Checker
  [Expand]Query Builder
 [Expand]ASP.NET MVC Extensions
 [Expand]Localization
 [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]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

HTML Validation Parameters

Real-time validation of the HTML markup entered into the HTML View is performed automatically by using an internal call to the ASPxHtmlEditor.CorrectHtml method. Validation parameters for this method are specified by settings that can be accessed with the ASPxHtmlEditor.SettingsHtmlEditing property:

Settings (property) Description
HtmlEditorHtmlEditingSettings.AllowedDocumentType Specifies what document types are allowed within ASPxHtmlEditor.
HtmlEditorHtmlEditingSettings.AllowFormElements Specifies whether or not the editor's HTML markup can contain form elements such as 'form', 'input' and 'select'.
HtmlEditorHtmlEditingSettings.AllowHTML5MediaElements Specifies whether or not the editor's HTML markup can contain HTML5 media elements, i.e., 'audio' and 'video' elements.
HtmlEditorHtmlEditingSettings.AllowIdAttributes Specifies whether the editor's HTML markup can contain ID attributes.
HtmlEditorHtmlEditingSettings.AllowIFrames Specifies whether the editor's HTML markup can contain iFrames.
HtmlEditorHtmlEditingSettings.AllowObjectAndEmbedElements Specifies whether the editor's HTML markup can contain 'object' and 'embed' elements.
HtmlEditorHtmlEditingSettings.AllowScripts Specifies whether the editor's HTML markup can contain scripts.
ASPxHtmlEditorSettings.AllowScriptExecutionInPreview Specifies whether the editor's content scripts should be executed in Preview.
HtmlEditorHtmlEditingSettings.AllowStyleAttributes Specifies whether the editor's HTML markup can contain style attributes.
HtmlEditorHtmlEditingSettings.AllowYouTubeVideoIFrames Specifies whether the editor's HTML markup can contain the 'iframe' element containing a link to YouTube video.
HtmlEditorHtmlEditingSettings.UpdateBoldItalic Specifies whether the <b> (bold) and <i> (italic) elements occurring within the editor's HTML markup should be replaced with the <strong> and <em> elements respectively.
HtmlEditorHtmlEditingSettings.UpdateDeprecatedElements Specifies whether deprecated elements found within the editor's HTML markup should be replaced with their valid variants.

You can also update HTML code manually by handling the ASPxHtmlEditor.HtmlCorrecting event.

Expanded See Also

How would you rate this topic?​​​​​​​