Function: escape()

Estimated reading time: less than 1 minute
function escape(this, strings, ...values): string

Tag function that escapes the given string pieces and interpolates the given values. Internally it uses escapeHtml to escape the values.

Parameters

this

void

strings

TemplateStringsArray

Template string.

values

...any[]

Values to interpolate.

Returns

string

The escaped string.