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)

  • RequestContextsrc/middleware/jsx-renderer/index.ts:14
  • RequestContextsrc/middleware/jsx-renderer/index.ts:14
  • createCssContextsrc/helper/css/index.ts:72
  • defaultPluginsrc/helper/ssg/plugins.ts:11
  • Propssrc/jsx/base.ts:27
  • childrenToStringsrc/jsx/components.ts:14
  • Contextsrc/jsx/context.ts:8
  • titlesrc/jsx/intrinsic-element/components.ts:121

…and 3 more.

Was this page helpful?

Download as PDF
html — Hono (narrator proof)