.gitlab-yml: Stage name displays HTML markup in pipeline UI
Summary
If the stage name contains an ampersand (&
), the pipeline UI displays it as &
.
Steps to reproduce
- Write a
.gitlab-ci.yml
file containing a stage with a name containing an ampersand. - Navigate to the pipeline page in GitLab.
Example Project
Example .gitlab-ci.yml
:
stages:
- "Buggy & broken"
"Good & well":
stage: "Buggy & broken"
script:
- true && true
Example project: https://gitlab.com/jotik/gitlab-stage-name-escape-bug
Relevant screenshot
Screenshot of https://gitlab.com/jotik/gitlab-stage-name-escape-bug/-/pipelines/295529493: