Merge request policy drawer summary displays HTML entities
Summary
We display html entities in the description when the policy is opened through the drawer
Steps to reproduce
- Upload a GitLab Ultimate license
- Navigate to a project/group => Secure => Policies => New policy => Merge request approval policy => Create the following policy
type: approval_policy
name: License policy
description: ''
enabled: false
rules:
- type: license_finding
match_on_inclusion_license: true
license_types:
- BSD 2-Clause "Simplified" License
- BSD 3-Clause "New" or "Revised" License
- BSD 4-Clause "Original" or "Old" License
- AMD's plpa_map.c License
- Artistic License 1.0 w/clause 8
- GNU General Public License v2.0 w/Autoconf exception
- Do What The F*ck You Want To Public License
- Yahoo! Public License v1.0
- Artistic License 1.0 (Perl)
- ODC Public Domain Dedication & License 1.0
license_states:
- newly_detected
branch_type: protected
- Navigate to the project/group => Secure => Policies
- Select the newly created policy and view the summary in the policy drawer
Example Project
What is the current bug behavior?
The policy drawer summary does not render special characters correctly (e.g. *, ")
What is the expected correct behavior?
The policy drawer summary does render special characters correctly (e.g. *, ")
Relevant logs and/or screenshots
Related to Improve handling of long policy summary for lic... (#415576 - closed)


