Skip to main content

Function: previewText()

previewText(text): string

Defined in: resolve.ts:68

Resolves persisted text to a plain string, for chat list previews and accessibility labels.

Script references only yield a string when their content is one; anything richer comes back empty, because a React node has no faithful string form.

Parameters

text

RichText

Persisted text from a transcript entry

Returns

string