A variant taking a plain JS string as input and parsing it.
Useful for cases when you already have a string (e.g. from some server) and want to parse it.
Escape a string to be safely used in HTML.
Note: this function is in most cases not needed, as
htmlfunction handles allstrings passed to it automatically as plain text.
Add HTML formatting to the text given the plain text and entities contained in it.
Optionaloptions: HtmlUnparseOptions
Tagged template based HTML-to-entities parser function
Additionally,
mdfunction has two static methods:html.escape- escape a string to be safely used in HTML (should not be needed in most cases, ashtmlfunction itself handles allstrings passed to it automatically as plain text)html.unparse- add HTML formatting to the text given the plain text and entities contained in it