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