Commit f6c6d94d authored by Kev's avatar Kev

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

parent 4e0d6868
<script> <script>
/* eslint-disable vue/no-v-html */
import $ from 'jquery'; import $ from 'jquery';
import { GlSafeHtmlDirective as SafeHtml } from '@gitlab/ui';
import { s__, sprintf } from '~/locale'; import { s__, sprintf } from '~/locale';
import { deprecatedCreateFlash as createFlash } from '~/flash'; import { deprecatedCreateFlash as createFlash } from '~/flash';
import animateMixin from '../mixins/animate'; import animateMixin from '../mixins/animate';
...@@ -8,6 +8,10 @@ import TaskList from '../../task_list'; ...@@ -8,6 +8,10 @@ import TaskList from '../../task_list';
import recaptchaModalImplementor from '../../vue_shared/mixins/recaptcha_modal_implementor'; import recaptchaModalImplementor from '../../vue_shared/mixins/recaptcha_modal_implementor';
export default { export default {
directives: {
SafeHtml,
},
mixins: [animateMixin, recaptchaModalImplementor], mixins: [animateMixin, recaptchaModalImplementor],
props: { props: {
...@@ -142,12 +146,12 @@ export default { ...@@ -142,12 +146,12 @@ export default {
> >
<div <div
ref="gfm-content" ref="gfm-content"
v-safe-html="descriptionHtml"
:class="{ :class="{
'issue-realtime-pre-pulse': preAnimation, 'issue-realtime-pre-pulse': preAnimation,
'issue-realtime-trigger-pulse': pulseAnimation, 'issue-realtime-trigger-pulse': pulseAnimation,
}" }"
class="md" class="md"
v-html="descriptionHtml"
></div> ></div>
<textarea <textarea
v-if="descriptionText" v-if="descriptionText"
......
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