> For the complete documentation index, see [llms.txt](https://wrapper.angular-package.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wrapper.angular-package.dev/wrapper/methods/instance/unwrap.md).

# unwrap()

## `Wrapper.prototype.unwrap()`

Returns the [`text`](/wrap/accessors/text.md) without the [`opening`](/wrap/accessors/opening.md) and [`closing`](/wrap/accessors/closing.md) chars.

{% code title="wrapper.class.ts" %}

```typescript
public unwrap(): Text {
  return this.text;
}
```

{% endcode %}

### Returns

The **return value** is the [`text`](/wrap/accessors/text.md) of a generic type variable [`Text`](https://wrapper.angular-package.dev/wrapper/methods/instance/pages/8pklXCrH2XMJA5SN1dLm#wrapper-less-than...-text-...greater-than).

## Example usage

```typescript
// Example usage.wrapper
import { Wrapper } from '@angular-package/wrapper';

const longText = new Wrapper('{', '}', '{This is a long text}');

// Returns {This is a long text}.
longText.unwrap();
```
