Convert a string or HTMLString into a sanitized HTMLString.
Plain text (anything isHTMLString does not recognize as markup) is
HTML-escaped and wrapped in wrapperTag; markup is passed through Foundry's
allowlist sanitizer (fvttCleanHTML), which drops every disallowed tag
and attribute. This is the single HTML sanitizer for chat-card and dialog
content, reached via toHTMLWithTemplate / toHTMLWithContent.
Convert a string or HTMLString into a sanitized HTMLString. Plain text (anything isHTMLString does not recognize as markup) is HTML-escaped and wrapped in
wrapperTag; markup is passed through Foundry's allowlist sanitizer (fvttCleanHTML), which drops every disallowed tag and attribute. This is the single HTML sanitizer for chat-card and dialog content, reached via toHTMLWithTemplate / toHTMLWithContent.