CI Linter line feed display broken

Summary

The CI linter displays line feeds as "\n", which make up one single line of long text.

Steps to reproduce

Take any .gitlab-ci.yml file, put it in any project's CI Lint input box and press validate. Any script parts will be displayed as one single line of text.

Example Project

I have no example project, but an example CI file to reproduce the bug:

stages:
- test

job:
  stage: test
  script:
  - one
  - two
  - three

What is the current bug behavior?

The script part is displayed as:

one\ntwo\nthree

What is the expected correct behavior?

Three single lines of text in the script part:

one
two
three

Relevant logs and/or screenshots

image

Output of checks

n/a

Results of GitLab environment info

n/a

Results of GitLab application Check

n/a

Possible fixes

n/a