Home > @uniformdev/richtext > renderChildrenToText

renderChildrenToText() function

Render an array of RichTextNodes to a string based on a particular context.

This will often be called from within a NodeRenderer using the renderChildren prop.

Signature:

declare function renderChildrenToText(children: RichTextNode[] | undefined, context: StringRenderContext): string;

Parameters

ParameterTypeDescription
childrenRichTextNode[] | undefined
contextStringRenderContext

Returns:

string