---
title: "DisplayText(Basket)"
slug: "api/basket/types/displaytext-basket"
sidebar:
  order: 307
---

<a id="ref-08e94caea0af"></a>
<a id="ref-b70a82ace887"></a>
<a id="ref-b19f0939e15a"></a>
<a id="ref-2cb925a9ffa5"></a>

## Synopsis

```text
struct DisplayText extends string (
    string lang;
    TextFormat?     Format)
```

See also: [`TextFormat`](/pCon/configuratorOnline/specs/api/project/types/textformat#ref-c7a8beb6b77f)

Field `format` determines the format of the text contained in this instance of DisplayText. Value `None` is prohibited, even if the text is empty. A text whose format field has not been set is assumed to be plain text.

Serialization of a `DisplayText` with neither `lang` `nor` `format` being set results in the same XML representation as that of type `string. Therefore,` `DisplayText` may be used instead of `string` without breaking compatibility with older clients as long as responses to requests generated by older clients are guaranteed to set neither attribute.
