Function: contentsToString()

Estimated reading time: less than 1 minute
function contentsToString(this, contents, escape?): Element

Joins raw string html elements into a single html string.

A raw html fragment is just an array of strings, this method concatenates them.

Parameters

this

void

contents

Children[]

An maybe nested array of strings to concatenate.

escape?

boolean

If it should escape the contents before concatenating them. Default is false

Returns

Element

The concatenated and escaped string of contents.