A newer version of this page is available. Switch to the current version.

FormLayoutProperties.EncodeHtml Property

Gets or sets a value that specifies whether the control keeps any of its values that are HTML as HTML, or strips out the HTML markers from it instead.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll


public virtual bool EncodeHtml { get; set; }
Public Overridable Property EncodeHtml As Boolean

Property Value

Type Default Description


true if the HTML code contained within the editor's values is not executed and is converted into the corresponding text for display purposes, false if the editor's values can contain pure HTML code.


If the EncodeHtml property is set to true, the editor's values that contain HTML code are parsed, so that any angle bracket (the characters < and >) of HTML tags is converted to specific symbols (&lt; and &gt;) when the editor renders its values to the page. This allows the HTML code to be represented on the page as text.

If this property is set to false, the content of the data values that contain HTML tags are not specifically parsed, and are rendered as pure HTML markup. This allows the result of the HTML code to be displayed within the editor.

Refer to the HTML Encoding topic for more information on DevExpress ASP.NET controls encoding.

See Also