# resolveCallback

**Kind:** Function

**Source:** [`src/utils/html.ts`](https://github.com/honojs/hono/blob/main/src/utils/html.ts#L142)

**Part of:** [Utils](subsystem-src-utils)

## Signature

```ts
async function resolveCallback(str: string | HtmlEscapedString | Promise<string>, phase: (typeof HtmlEscapedCallbackPhase)[keyof typeof HtmlEscapedCallbackPhase], preserveCallbacks: boolean, context: object, buffer: [string]): Promise<string>
```

## Parameters

| Name | Type |
|---|---|
| `str` | `string | HtmlEscapedString | Promise<string>` |
| `phase` | `(typeof HtmlEscapedCallbackPhase)[keyof typeof HtmlEscapedCallbackPhase]` |
| `preserveCallbacks` | `boolean` |
| `context` | `object` |
| `buffer` | `[string]` |

**Returns:** `Promise<string>`

## Used by

4 references from 4 files. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.

### Imported by (4)

- `Data` — `src/context.ts`:26
- `SSEMessage` — `src/helper/streaming/sse.ts`:6
- `childrenToString` — `src/jsx/components.ts`:14
- `StreamingContext` — `src/jsx/streaming.ts`:30
