---
title: "TextUtils | Customer's Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/TextUtils/"
---

# TextUtils

> [`TextUtils`](#textutils)

## Classes

### TextUtils

#### Constructors

##### Constructor

```ts
new TextUtils(): TextUtils;
```

###### Returns

#### Methods

##### correctPlainMultilineText()

```ts
static correctPlainMultilineText(text): string;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `text` | `string` |

###### Returns

`string`

##### isTextEmpty()

```ts
static isTextEmpty(text): text is "" | "<p></p>" | "<p><span></span></p>";
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `text` | `string` |

###### Returns

text is "" \| "\<p\>\</p\>" \| "\<p\>\<span\>\</span\>\</p\>"
