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:
declare function renderToText(node: RichTextNode | null | undefined, parentContext?: Partial<StringRenderContext>): string;
Parameters
Parameter | Type | Description |
---|---|---|
node | RichTextNode | null | undefined | |
parentContext | Partial<StringRenderContext> | (Optional) |
Returns:
string