Commit 256bb662 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'fix/241959-remove-v-html-from-suggestion-diff-row' into 'master'

Fix 241959 remove v-html from suggestion-diff-row.vue

See merge request gitlab-org/gitlab!64840
parents 9cee253d 3e8e1cdd
<script>
/* eslint-disable vue/no-v-html */
import { GlSafeHtmlDirective as SafeHtml } from '@gitlab/ui';
export default {
name: 'SuggestionDiffRow',
directives: {
SafeHtml,
},
props: {
line: {
type: Object,
......@@ -32,7 +36,7 @@ export default {
:class="[{ 'd-table-cell': displayAsCell }, lineType]"
data-testid="suggestion-diff-content"
>
<span v-if="line.rich_text" class="line" v-html="line.rich_text"></span>
<span v-if="line.rich_text" v-safe-html="line.rich_text" class="line"></span>
<span v-else-if="line.text" class="line">{{ line.text }}</span>
<span v-else class="line"></span>
</td>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment