html
Esta página aún no está disponible en tu idioma.
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.
Parameters
Section titled “Parameters”strings
Section titled “strings”TemplateStringsArray
values
Section titled “values”…unknown[]
