Commit 78059ea8 authored by Kev's avatar Kev

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

parent 4e0d6868
<script> <script>
/* eslint-disable vue/no-v-html */
import Vue from 'vue'; import Vue from 'vue';
import { GlSafeHtmlDirective as SafeHtml } from '@gitlab/ui';
import { __ } from '~/locale'; import { __ } from '~/locale';
import SuggestionDiff from './suggestion_diff.vue'; import SuggestionDiff from './suggestion_diff.vue';
import { deprecatedCreateFlash as Flash } from '~/flash'; import { deprecatedCreateFlash as Flash } from '~/flash';
export default { export default {
directives: {
SafeHtml,
},
props: { props: {
lineType: { lineType: {
type: String, type: String,
...@@ -116,6 +119,6 @@ export default { ...@@ -116,6 +119,6 @@ export default {
<template> <template>
<div> <div>
<div class="flash-container js-suggestions-flash"></div> <div class="flash-container js-suggestions-flash"></div>
<div v-show="isRendered" ref="container" class="md" v-html="noteHtml"></div> <div v-show="isRendered" ref="container" v-safe-html="noteHtml" class="md"></div>
</div> </div>
</template> </template>
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