Skip to main content
Tab

EditPropertiesBase.EncodeHtml Property

SECURITY NOTE

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

NuGet Package: DevExpress.Web

Declaration

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

Property Value

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.

Remarks

Grid-like controls convert service characters (for instance, < and >) in cell values to character entity references (&lt; and &gt;) 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