---
title: "TextUtils | Customer&#x27;s Canvas"
canonical: "https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/TextUtils/"
archived: false
applies_to:
  - product: "Customer's Canvas On-Premises"
  - product: "Customer's Canvas Hub"
    versions: ["cloud"]
    entity_id: "https://customerscanvas.com/products/hub#software-application"
  - product: "Design Atoms JS"
    versions: ["7.4"]
---

# TextUtils

**Applies to:** Customer's Canvas On-Premises; Customer's Canvas Hub cloud; Design Atoms JS 7.4

> API reference for the TextUtils module in @aurigma/design-atoms-text.

## Classes

### TextUtils

#### Constructors

##### Constructor

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

###### Returns

[`TextUtils`](#textutils)

#### 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\>"
