Escape a string for safe use inside an HTML attribute value.
Stricter than escapeHtml: in addition to &, <, and >,
this also escapes both double and single quotes to prevent attribute
breakout regardless of which quote character delimits the attribute.
Parameters
value: string
The raw attribute value to escape.
Returns string
The escaped string safe for embedding in an HTML attribute.
Escape a string for safe use inside an HTML attribute value.
Stricter than escapeHtml: in addition to
&,<, and>, this also escapes both double and single quotes to prevent attribute breakout regardless of which quote character delimits the attribute.