HtmlEdit.SetHtmlSourceAsync(HtmlSource, CancellationToken) Method
SECURITY NOTE
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
public Task SetHtmlSourceAsync(
HtmlSource htmlSource,
CancellationToken cancellationToken = default(CancellationToken)
)
Parameters
Name | Type | Description |
---|---|---|
htmlSource | HtmlSource | The HtmlSource that includes HTML markup to display in the control. |
Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
cancellationToken | CancellationToken | null | A cancellation token. |
Returns
Type | Description |
---|---|
Task | A task that allows you to wait for the operation. |