Home > @uniformdev/richtext > renderToText
renderToText() function
Render a node and its children to text
This could be the root node or a nested node
Signature:
Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead> <tbody><tr><td>
node
</td><td>
RichTextNode | null | undefined
</td><td>
</td></tr> <tr><td>
parentContext
</td><td>
Partial<StringRenderContext>
</td><td>
(Optional)
</td></tr> </tbody></table> Returns:
string