Render snippet title_html in snippet list view
What does this MR do and why?
Render title_html for snippet titles in the snippet list view, fixing an inconsistency between the single-snippet view (updated in !242858 (merged)) and the list view.
References
- Render snippet's title_html in the snippet listing (#606472)
- Backend MR that made
Snippet'stitle_htmlworth using: Render snippet title in backend using issuable ... (!242856 - merged) - Frontend MR that used it in the snippet view: Render snippet title HTML in frontend (!242858 - merged)
- DOMPurify "title in link" config added in Use titleHtml where appropriate (!232293 - merged)
Screenshots or screen recordings
| Before | After |
|---|---|
![]() |
![]() |
How to set up and validate locally
- Create a snippet with a title containing supported markup, e.g.
Hello `world` :fox. - You should see the markup rendered in the title of the snippet view.
- Visit the snippet list (e.g.
/-/snippets). - It should display literally, i.e. you see what you typed, nothing interpreted.
- Check this branch out and refresh the list.
- You should see it rendered there too now!
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Asherah Connor

