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.2.dll
Declaration
Property Value
Type | Default | Description |
---|---|---|
Boolean | true |
|
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