# escapeToBuffer

**Kind:** Function

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

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

## Signature

```ts
function escapeToBuffer(str: string, buffer: StringBuffer): void
```

## Parameters

| Name | Type |
|---|---|
| `str` | `string` |
| `buffer` | `StringBuffer` |

**Returns:** `void`

## 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)

- `createCssContext` — `src/helper/css/index.ts`:72
- `html` — `src/helper/html/index.ts`:11
- `Props` — `src/jsx/base.ts`:27
- `jsxAttr` — `src/jsx/jsx-runtime.ts`:16
