HtmlEditorHtmlEditingSettings.UpdateDeprecatedElements Property

Gets or sets a value that specifies whether deprecated elements (such as u, s, strike, font, center) occurring within the editor's HTML markup should be replaced with their valid analogs.

Namespace: DevExpress.Web.ASPxHtmlEditor

Assembly: DevExpress.Web.ASPxHtmlEditor.v20.2.dll

Declaration

[DefaultValue(true)]
public bool UpdateDeprecatedElements { get; set; }

Property Value

Type Default Description
Boolean

true

true if deprecated elements should be replaced with their valid analogs in the editor's HTML markup; otherwise, false.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to UpdateDeprecatedElements
ASP.NET Controls and MVC Extensions ASPxHtmlEditor
.SettingsHtmlEditing.UpdateDeprecatedElements
ASP.NET MVC Extensions HtmlEditorBinderSettings
.HtmlEditingSettings.UpdateDeprecatedElements
HtmlEditorSettings
.SettingsHtmlEditing.UpdateDeprecatedElements
MVCxHtmlEditor
.SettingsHtmlEditing.UpdateDeprecatedElements

Remarks

Example:

The markup below

<u class="underlined">underlined</u>
<s id="id">strike-through</s>
<strike onclick="alert(1)">another strike-through</strike>
<center>
    <span style="background-color: Lime;">Hello, World!</span>
</center>

is converted to the following markup:

<span class="underlined" style="text-decoration: underline;">underlined</span>
<span id="id" style="text-decoration: line-through;">strike-through</span>
<span onclick="alert(1)" style="text-decoration: line-through;">another strike-through</span>
<div style="text-align: center;">
    <span style="background-color: Lime;">Hello, World!</span>
</div>
See Also