# Wrapped

The [`Wrapped`](https://docs.angular-package.dev/text/basic-concepts#wrapped) string object represents the immutable wrapped text.

### Instance accessors

<table><thead><tr><th width="150">Wrapped.prototype.</th><th>Decription</th><th data-hidden></th></tr></thead><tbody><tr><td><a href="instance-accessors#closingchar">closing</a></td><td>The <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/get"><code>get</code></a> accessor gets the <a href="../basic-concepts#closing">closing</a> of the <a href="../basic-concepts#wrap">wrap</a>.</td><td></td></tr><tr><td><a href="instance-accessors#openingchar">opening</a></td><td>The <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/get"><code>get</code></a> accessor gets the <a href="instance-accessors#opening">opening</a> of the <a href="../basic-concepts#wrap">wrap</a>.</td><td></td></tr><tr><td><a href="instance-accessors#wrapped.property.text">text</a></td><td>The <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/get"><code>get</code></a> accessor gets the text.</td><td></td></tr><tr><td><a href="instance-accessors#value">value</a></td><td>The <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/get"><code>get</code></a> accessor gets the wrapped text primitive value of a specified object.</td><td></td></tr><tr><td><a href="instance-accessors#symbol.tostringtag">[Symbol.toStringTag]</a></td><td>The property, with the help of <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag"><code>toStringTag</code></a> of Symbol, changes the default object tag to <code>wrapped</code> for an instance of the <a href="wrapped"><code>Wrapped</code></a>.</td><td></td></tr></tbody></table>

### Static methods

<table><thead><tr><th width="159.3850553872428">Wrapped.</th><th>Description</th></tr></thead><tbody><tr><td><a href="static-methods#iswrapped">isWrapped()</a></td><td>The static method checks whether the provided <code>value</code> of any type is an instance of <a href="wrapped"><code>Wrapped</code></a>.</td></tr><tr><td><a href="static-methods#template">template()</a></td><td>The static "tag" method builds the wrapped text of a <code>string</code> type on the template.</td></tr></tbody></table>

### Instance methods

| Wrapped.prototype.                                                                  | Description                                                                                                                                                                                                                                        |
| ----------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [unwrap()](https://docs.angular-package.dev/text/wrapper/instance-methods#unwrap)   | Returns an unwrapped text, without the [opening](https://docs.angular-package.dev/text/wrapper/instance-accessors#openingchar), and [closing](https://docs.angular-package.dev/text/wrapper/instance-accessors#closingchar) character of the wrap. |
| [valueOf()](https://docs.angular-package.dev/text/wrapper/instance-methods#valueof) | Gets wrapped text, the primitive value of a specified object.                                                                                                                                                                                      |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.angular-package.dev/text/wrapper/wrapped.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
