Back to Devexpress

HtmlEditorHtmlEditingSettings.UpdateDeprecatedElements Property

aspnet-devexpress-dot-web-dot-aspxhtmleditor-dot-htmleditorhtmleditingsettings-5964bdc8.md

latest2.3 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(true)]
public bool UpdateDeprecatedElements { get; set; }
vb
<DefaultValue(True)>
Public Property UpdateDeprecatedElements As Boolean

Property Value

TypeDefaultDescription
Booleantrue

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

|

Remarks

Example:

The markup below

aspx
<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:

aspx
<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

HtmlEditorHtmlEditingSettings Class

HtmlEditorHtmlEditingSettings Members

DevExpress.Web.ASPxHtmlEditor Namespace