> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# Function: prettyDOM()

> **prettyDOM**(`dom?`: `Element` | `HTMLDocument`, `maxLength?`: `number`, `options?`: [`PrettyDOMOptions`](/next/api/react/testing-library/Interfaces/PrettyDOMOptions.md)): `string` | `false`

## Parameters

| Parameter    | Type                                                                                 |
| ------------ | ------------------------------------------------------------------------------------ |
| `dom?`       | `Element` \| `HTMLDocument`                                                          |
| `maxLength?` | `number`                                                                             |
| `options?`   | [`PrettyDOMOptions`](/next/api/react/testing-library/Interfaces/PrettyDOMOptions.md) |

## Returns

`string` | `false`
