DynamicControl.HtmlEncode Property

Definition

Gets or sets a value that indicates whether the data for the control is HTML-encoded before rendering.

C#
public bool HtmlEncode { get; set; }

Property Value

true if the data for the control is HTML-encoded before rendering; otherwise, false. The default is true.

Remarks

Use the HtmlEncode property to specify whether field values are HTML-encoded to their respective string representations before they are displayed.

Huomautus

HTML-encoding field values helps to prevent cross-site scripting attacks and malicious content from being displayed. This property should be enabled whenever possible. For more information, see Script Exploits Overview.

Applies to

Tuote Versiot
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1