콘텐츠로 이동
한국어

html

이 콘텐츠는 아직 번역되지 않았습니다.

html(strings, …values): SafeHtml

Defined in: src/http/Html.ts:64

Tagged template that escapes every interpolation by default, so the common case is safe without thinking about it:

html`<li class="${cls}">${userName}</li>`

A SafeHtml value (e.g. a nested html\`fragment, or the output of the sanitizer) is inserted verbatim; arrays are rendered item-by-item and joined;null/undefined` become the empty string; everything else is coerced to a string and escaped.

TemplateStringsArray

unknown[]

SafeHtml