Skip to content

parseHtmlText()

function parseHtmlText(source): TextRun[];

Parses whitelisted formatting markup into styled runs. Unknown tags are dropped (their text is kept), comments are removed, entities decoded.

Parameter Type
source string

TextRun[]