Describe the bug
If a suite name or test name contains HTML it will be rendered as HTML instead of showing the HTML code. We often use the name of the component as suite name, like describe("<MyComponent />", () => {}). After updating to Vitest UI 2.x the suite name is now rendered as HTML, resulting in an empty suite name in the UI.

Reproduction
https://stackblitz.com/edit/vitest-dev-vitest-qiylvf?file=test%2Fsuite.test.ts&initialPath=__vitest__/
System Info
System:
OS: Linux 5.0 undefined
CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
Memory: 0 Bytes / 0 Bytes
Shell: 1.0 - /bin/jsh
Binaries:
Node: 18.20.3 - /usr/local/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 10.2.3 - /usr/local/bin/npm
pnpm: 8.15.6 - /usr/local/bin/pnpm
npmPackages:
@vitest/ui: latest => 2.0.1
vite: latest => 5.3.3
vitest: latest => 2.0.1
Used Package Manager
npm
Validations
Describe the bug
If a suite name or test name contains HTML it will be rendered as HTML instead of showing the HTML code. We often use the name of the component as suite name, like
describe("<MyComponent />", () => {}). After updating to Vitest UI 2.x the suite name is now rendered as HTML, resulting in an empty suite name in the UI.Reproduction
https://stackblitz.com/edit/vitest-dev-vitest-qiylvf?file=test%2Fsuite.test.ts&initialPath=__vitest__/
System Info
System: OS: Linux 5.0 undefined CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz Memory: 0 Bytes / 0 Bytes Shell: 1.0 - /bin/jsh Binaries: Node: 18.20.3 - /usr/local/bin/node Yarn: 1.22.19 - /usr/local/bin/yarn npm: 10.2.3 - /usr/local/bin/npm pnpm: 8.15.6 - /usr/local/bin/pnpm npmPackages: @vitest/ui: latest => 2.0.1 vite: latest => 5.3.3 vitest: latest => 2.0.1Used Package Manager
npm
Validations