Frontend - Special characters wrongly displayed on homepage

Summary

Special characters such as ' in user name are shown as raw HTML special chars on home page.

Steps to reproduce

  1. Have a special character (such as an apostrophe U+0027 ') in your name (eg. last name)
  2. Go to https://gitlab.com

What is the current bug behavior?

Homepage greets me with: "Hi, Gurvan Biguet--Kerloc'h"

What is the expected correct behavior?

Homepage greets me with: "Hi, Gurvan Biguet--Kerloc'h"

Relevant logs and/or screenshots

image

Output of checks

This bug happens on GitLab.com

Possible fixes

I'm guessing https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/assets/javascripts/homepage/components/greeting_header.vue?ref_type=heads#L32 should be different.

Edited by 🤖 GitLab Bot 🤖