Specifies whether field contents should be encoded to render Html elements as literals, or as raw Html content.

Namespace:  C1.Web.C1WebReport
Assembly:  C1.Web.C1WebReport.2 (in C1.Web.C1WebReport.2.dll)

Syntax

C#
[DefaultValueAttribute(true)]
public bool EncodeHtml { get; set; }
Visual Basic (Declaration)
<DefaultValueAttribute(True)> _
Public Property EncodeHtml As Boolean
	Get
	Set

Remarks

If you set the EncodeHtml property to true, fields that contain Html characters are encoded so the characters appear as literals. For example, a field that contains "<b>Hello</b>" would be displayed in the browser as plain text. The Html tags will be rendered and the "Hello" string would not be bold.

If you set the EncodeHtml property to false, fields that contain Html characters are rendered directly to the browser. For example, a field that contains "<b>Hello</b>" would be displayed in the browser as a bold "Hello".

Note that setting EncodeHtml to false allows you to render fields with Html content only into the browser. It does not work with Pdf reports.

The default value for this property is True.

See Also