Commit ad844825 authored by Mark Florian's avatar Mark Florian

Merge branch 'feature/issue_241962' into 'master'

Replace v-html to v-safe-html directive

Closes #241962

See merge request gitlab-org/gitlab!41305
parents faa41dcb 2073446f
<script>
/* eslint-disable vue/no-v-html */
import { GlSafeHtmlDirective as SafeHtml } from '@gitlab/ui';
import axios from '~/lib/utils/axios_utils';
import { deprecatedCreateFlash as Flash } from '~/flash';
......@@ -12,6 +12,9 @@ export default {
components: {
DeprecatedModal,
},
directives: {
SafeHtml,
},
props: {
issueCount: {
type: Number,
......@@ -125,7 +128,7 @@ Once deleted, it cannot be undone or recovered.`),
@submit="onSubmit"
>
<template #body="props">
<p v-html="props.text"></p>
<p v-safe-html="props.text"></p>
</template>
</deprecated-modal>
</template>
---
title: Replace v-html to v-safe-html directive
merge_request: 41305
author: Kazuya Kojima
type: other
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