Back to Devexpress

PivotGridBuilder<T>.EncodeHtml(Boolean) Method

aspnetcore-devextreme-dot-aspnet-dot-mvc-dot-builders-dot-pivotgridbuilder-1-dot-encodehtml-x28-system-dot-boolean-x29.md

latest2.0 KB
Original Source

PivotGridBuilder<T>.EncodeHtml(Boolean) Method

SECURITY-RELATED CONSIDERATIONS

Passing false to this method may introduce security-related issues. Review the following help topic and learn how to protect websites from cross-site scripting (XSS) attacks: Prevent Cross-Site Scripting (XSS) Attacks.

Mirrors the client-side encodeHtml option that specifies whether to display HTML tags as plain text or apply them to cell values.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public PivotGridBuilder<T> EncodeHtml(
    bool value
)

Parameters

NameTypeDescription
valueBoolean

The encodeHtml option value. When this option is set to true (the default value), the component displays HTML tags as plain text. Set the option to false to apply HTML tags to cell values.

|

Returns

TypeDescription
PivotGridBuilder<T>

A reference to this instance after the method is called.

|

Remarks

Use the following notation to set the option’s value:

cshtml
@(Html.DevExtreme().PivotGrid()
    .EncodeHtml(false)
)

See Also

PivotGridBuilder<T> Class

PivotGridBuilder<T> Members

DevExtreme.AspNet.Mvc.Builders Namespace