Back to Devexpress

HtmlEdit.SetHtmlSourceAsync(HtmlSource, CancellationToken) Method

maui-devexpress-dot-maui-dot-htmleditor-dot-htmledit-dot-sethtmlsourceasync-x28-devexpress-dot-maui-dot-htmleditor-dot-htmlsource-system-dot-threading-dot-cancellationtoken-x29.md

latest1.9 KB
Original Source

HtmlEdit.SetHtmlSourceAsync(HtmlSource, CancellationToken) Method

SECURITY-RELATED CONSIDERATIONS

The HTML Edit control does not support CSP. To minimize security-related risks, you should always sanitize untrusted raw HTML content (passed from potentially unsafe sources).

Note: End users cannot inject malicious content using the HTML Edit control’s user interface. As such you only need to sanitize content passed to the HTML Edit control via its API.

Asynchronously specifies the HTML markup source that is displayed in the HtmlEdit.

Namespace : DevExpress.Maui.HtmlEditor

Assembly : DevExpress.Maui.HtmlEditor.dll

NuGet Package : DevExpress.Maui.HtmlEditor

Declaration

csharp
public Task SetHtmlSourceAsync(
    HtmlSource htmlSource,
    CancellationToken cancellationToken = default(CancellationToken)
)

Parameters

NameTypeDescription
htmlSourceHtmlSource

The HtmlSource that includes HTML markup to display in the control.

|

Optional Parameters

NameTypeDefaultDescription
cancellationTokenCancellationTokennull

A cancellation token.

|

Returns

TypeDescription
Task

A task that allows you to wait for the operation.

|

See Also

HtmlEdit Class

HtmlEdit Members

DevExpress.Maui.HtmlEditor Namespace