Function
escapeText
function escapeText(data: string): stringDefined in escape.ts:172
Encodes all characters that have to be escaped in HTML text, following https://html.spec.whatwg.org/multipage/parsing.html#escapingString.
Parameters
data: stringString to escape.
Returns
string