[**@wocart/theme v4.1.0**](../../README)

***

[@wocart/theme](../../README) / [index](../README) / richTextToPlainText

# Function: richTextToPlainText()

> **richTextToPlainText**(`document`): `string`

The document's text without formatting: blocks and list items on their own
lines, line breaks kept — for meta descriptions, `aria-label`s and previews.

## Parameters

### document

[`RichTextDocument`](../type-aliases/RichTextDocument)

## Returns

`string`
