entities 9.0.0
function escapeUTF8(data: string): string

Defined in escape.ts:150

Encodes all characters not valid in XML documents using XML entities.

Note that the output will be character-set dependent.

Parameters

data: string

String to escape.

Returns

string