Commit 7aa7efac authored by Takuya Noguchi's avatar Takuya Noguchi

Remove v-html from vue_shared/.../blob_viewers/rich_viewer.vue

Signed-off-by: default avatarTakuya Noguchi <takninnovationresearch@gmail.com>
parent 957bd3bc
<script>
/* eslint-disable vue/no-v-html */
import { GlSafeHtmlDirective as SafeHtml } from '@gitlab/ui';
import MarkdownFieldView from '~/vue_shared/components/markdown/field_view.vue';
import ViewerMixin from './mixins';
import { handleBlobRichViewer } from '~/blob/viewer';
......@@ -8,6 +8,9 @@ export default {
components: {
MarkdownFieldView,
},
directives: {
SafeHtml,
},
mixins: [ViewerMixin],
mounted() {
handleBlobRichViewer(this.$refs.content, this.type);
......@@ -15,5 +18,5 @@ export default {
};
</script>
<template>
<markdown-field-view ref="content" v-html="content" />
<markdown-field-view ref="content" v-safe-html="content" />
</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