Skip to main content
A newer version of this page is available. .
Tab

ASPxTextBoxBase.EncodeHtml Property

Gets or sets a value that specifies whether the editor’s element content is rendered as pure HTML, or HTML markers are stripped out.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

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

Property Value

Type Default Description
Boolean **true**

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

Remarks

If the EncodeHtml property is set to true, a text box editor’s element content (for example, caption) that contains HTML code is parsed so that any angle bracket (the characters < and >) of HTML tags is converted to specific symbols (&lt; and &gt;). This allows the HTML code to be represented on the page as text. If this property is set to false, the content of the editor’s element that contains HTML tags is not specifically parsed and is rendered as pure HTML markup. This allows the result of the HTML code to be displayed within the editor’s element (for example, caption).

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

See Also