Skip to main content

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.v24.1.dll

NuGet Package: DevExpress.Web


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.



The markup below

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

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>
See Also