> 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-draft/wrapper/methods/unwrap.md).

# unwrap()

## `Wrapper.prototype.unwrap()`

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

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

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

{% endcode %}

### Returns

The **return value** is the [`text`](/wrapper-draft/wrap/accessors/get-text.md) of a generic type variable [`Text`](https://wrapper.angular-package.dev/wrapper-draft/wrapper/methods/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();
```
