text<TContextData>(strings: TemplateStringsArray,...values: unknown[],): Text<"block", TContextData>
A template string tag that creates a Text tree.
Basically, it only interpolates values into the template string and escapes HTML characters, except for line breaks and paragraphs. For example, the below code:
text`Hello, <${em("World")}>!\n\nGoodbye!`
will be rendered as:
<p>Hello, <<em>World</em>>!</p> <p>Goodbye!</p>
Text<"block", TContextData>
A Text tree.