# clipboard/utils/viewtoplaintext

module

<a id="functions">

## Functions

<a id="function-viewToPlainText">

### `viewToPlainText( converter, viewItem ) → string`

Converts [view item](module_engine_view_item-ViewItem.md) and all of its children to plain text.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-clipboard/src/utils/viewtoplaintext.ts#L26)

#### Parameters

* `converter: ViewDomConverter`

  The converter instance.

* `viewItem: ViewDocumentFragment | ViewItem`

  View item to convert.

#### Returns

* `string`

  Plain text representation of `viewItem`.

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
