Get the Newsletter

createTemplateFromMarkup

A Method

createTemplateFromMarkup(markup: string): HTMLTemplateElement

Creates an HTMLTemplateElement using the markup provided.

Parameters

markup: string
A string containing the markup to turn into a template. Note: This string must contain the template element as well.

Returns

The instance of HTMLTemplateElement that was created from the provided markup.