html
html(
raw
, ...values
):string
A tagged template that interprets different kinds of values into escaped HTML.
ts
consttemplate =html `<div hx-vals=${{foo : 'bar' }} />`;assertEqual (template , `<div hx-vals='{"foo":"bar"}' />`);
ts
consttemplate =html `<div hx-vals=${{foo : 'bar' }} />`;assertEqual (template , `<div hx-vals='{"foo":"bar"}' />`);
Parameters
• raw: TemplateStringsArray
• ...values: InterpValue
[]
Returns
string