Escape HTML attributes for safe use in attribute values.
The string to escape. Null or undefined returns "".
""
The escaped string, safe for use in HTML attribute values.
Sanitizes arbitrary strings against attribute injection by escaping &, ', ", <, >.
Escape HTML attributes for safe use in attribute values.