Skip to main content
Version: 2.x

DOMPolicy.createHTML() method

@microsoft/fast-element > DOMPolicy > createHTML

DOMPolicy.createHTML() method

Creates safe HTML from the provided value.

Signature:

createHTML(value: string): string;

Parameters

Parameter

Type

Description

value

string

The source to convert to safe HTML.

Returns:

string