IFieldFormattingOptions.HtmlEncode Property

Definition

Gets a value that indicates whether the data for the control is HTML-encoded before it is rendered.

public:
 property bool HtmlEncode { bool get(); };
public bool HtmlEncode { get; }
member this.HtmlEncode : bool
Public ReadOnly Property HtmlEncode As Boolean

Property Value

true if the data for the control is HTML-encoded before it is rendered; otherwise, false.

Remarks

HTML-encoding field values helps prevent cross-site scripting attacks and malicious content from being rendered to the browser. This property should be enabled unless you trust the content or have checked for malicious content in another way.

Applies to