Commit 838ad1d5 authored by Kev's avatar Kev Committed by Rémy Coutable

Replace v-html with v-safe-html in history_comment.vue

parent ff28d00a
<script>
/* eslint-disable vue/no-v-html */
import { GlDeprecatedButton, GlButton } from '@gitlab/ui';
import { GlDeprecatedButton, GlButton, GlSafeHtmlDirective as SafeHtml } from '@gitlab/ui';
import EventItem from 'ee/vue_shared/security_reports/components/event_item.vue';
import { deprecatedCreateFlash as createFlash } from '~/flash';
import { __, s__ } from '~/locale';
......@@ -15,6 +14,10 @@ export default {
HistoryCommentEditor,
},
directives: {
SafeHtml,
},
props: {
comment: {
type: Object,
......@@ -154,7 +157,7 @@ export default {
icon-class="timeline-icon m-0"
class="m-3"
>
<div class="md" v-html="comment.note_html"></div>
<div v-safe-html="comment.note_html" class="md"></div>
<template #right-content>
<gl-button
......
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