Back to Devexpress

SettingsBase.EncodeHtml Property

aspnetmvc-devexpress-dot-web-dot-mvc-dot-settingsbase-69551f0c.md

latest1.7 KB
Original Source

SettingsBase.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 editor value and content.

Namespace : DevExpress.Web.Mvc

Assembly : DevExpress.Web.Mvc5.v25.2.dll

NuGet Package : DevExpress.Web.Mvc5

Declaration

csharp
public bool EncodeHtml { get; set; }
vb
Public Property EncodeHtml As Boolean

Property Value

TypeDescription
Boolean

true to encode editor value and content and display them as text, false to not encode editor value and content and render them as HTML markup.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to EncodeHtml
MVCxFormLayoutItem

.NestedExtensionSettings .EncodeHtml

|

See Also

SettingsBase Class

SettingsBase Members

DevExpress.Web.Mvc Namespace