aspnet-devexpress-dot-web-dot-editpropertiesbase.md
Disabling this property may introduce security-related issues. Review the following help topic and learn how to protect websites from cross-site scripting (XSS) attacks: HTML Encoding.
Gets or sets whether to encode cell values in a column/row..
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
[DefaultValue(true)]
public virtual bool EncodeHtml { get; set; }
<DefaultValue(True)>
Public Overridable Property EncodeHtml As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | true |
true to encode column/row cell values and display them as text, false to not encode column/row cell values and render them as HTML markup.
|
Grid-like controls convert service characters (for instance, < and >) in cell values to character entity references (< and >) and display HTML code as text. Set the EncodeHtml property to false to prevent such a convertion and render cell values as HTML markup.
Note
The EncodeHtml property of a column/row overwrites the editor’s EncodeHTML property value. However, the editor never encodes text displayed in the edit box.
See Also