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:

Parameters

<table><thead><tr><th>

Parameter

</th><th>

Type

</th><th>

Description

</th></tr></thead> <tbody><tr><td>

children

</td><td>

RichTextNode[] | undefined

</td><td>

</td></tr> <tr><td>

context

</td><td>

StringRenderContext

</td><td>

</td></tr> </tbody></table> Returns:

string