adding a character entity into an object in jquery

Pretty simple stuff but since I’m still a little rusty on jquery I spent a lot of time trying to get the entity to show up using text: by escaping characters. (spoiler: don’t use text: use html:

Right Way

Wrong Way

Topics covered:
Enable Javascript