Commit 54d658f7 authored by imrishabh18's avatar imrishabh18

refactor: replacing v-html with v-safe-html

parent 8abf12af
<script>
import { GlSafeHTMLDirective as Safehtml } from "@gitlab/ui";
import MarkdownFieldView from '~/vue_shared/components/markdown/field_view.vue';
export default {
components: {
MarkdownFieldView,
},
directives: {
Safehtml
},
props: {
description: {
type: String,
......@@ -18,7 +22,7 @@ export default {
<markdown-field-view class="snippet-description" data-qa-selector="snippet_description_content">
<div
class="md js-snippet-description"
v-html="description /* eslint-disable-line vue/no-v-html */"
v-safe-html="description"
></div>
</markdown-field-view>
</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