Skip to content

html

reference
1 min readUpdated

Kind: Function

Source: src/helper/html/index.ts

Part of: Helper

Signature

ts
function html(strings: TemplateStringsArray, values: unknown[]): HtmlEscapedString | Promise<HtmlEscapedString>

Parameters

NameType
stringsTemplateStringsArray
valuesunknown[]

Returns: HtmlEscapedString | Promise<HtmlEscapedString>

Relationships

  • IMPORTS → escapeToBuffer
  • IMPORTS → raw
  • IMPORTS → resolveCallbackSync
  • IMPORTS → stringBufferToString

Used by

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

Imported by (11)

  • RequestContext — src/middleware/jsx-renderer/index.ts:14
  • RequestContext — src/middleware/jsx-renderer/index.ts:14
  • createCssContext — src/helper/css/index.ts:72
  • defaultPlugin — src/helper/ssg/plugins.ts:11
  • Props — src/jsx/base.ts:27
  • childrenToString — src/jsx/components.ts:14
  • Context — src/jsx/context.ts:8
  • title — src/jsx/intrinsic-element/components.ts:121

…and 3 more.

Was this page helpful?

Download as PDF
html — Hono (narrator proof)