Home > @uniformdev/richtext > renderToHtml
renderToHtml() function
Render a node and its children to HTML
This could be the root node or a nested node
Signature:
declare function renderToHtml(node: RichTextNode | null | undefined, parentContext?: Partial<StringRenderContext>): string;
Parameters
Parameter | Type | Description |
---|---|---|
node | RichTextNode | null | undefined | |
parentContext | Partial<StringRenderContext> | (Optional) |
Returns:
string