Back to Devexpress

EditPropertiesBase.EncodeHtml Property

aspnet-devexpress-dot-web-dot-editpropertiesbase.md

latest2.2 KB
Original Source

EditPropertiesBase.EncodeHtml Property

SECURITY-RELATED CONSIDERATIONS

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

Declaration

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

Property Value

TypeDefaultDescription
Booleantrue

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

ASPxHyperLink.EncodeHtml

ASPxLabel.EncodeHtml

ASPxListBox.EncodeHtml

ASPxCheckListBase.EncodeHtml

EditPropertiesBase Class

EditPropertiesBase Members

DevExpress.Web Namespace