Commit 33c20f49 authored by Kev's avatar Kev

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

parent 438aade5
<script> <script>
/* eslint-disable vue/no-v-html */
import { import {
GlFormGroup, GlFormGroup,
GlFormInput, GlFormInput,
...@@ -9,6 +8,7 @@ import { ...@@ -9,6 +8,7 @@ import {
GlSprintf, GlSprintf,
GlLink, GlLink,
GlIcon, GlIcon,
GlSafeHtmlDirective as SafeHtml,
} from '@gitlab/ui'; } from '@gitlab/ui';
import { s__, __, sprintf } from '~/locale'; import { s__, __, sprintf } from '~/locale';
import ModalCopyButton from '~/vue_shared/components/modal_copy_button.vue'; import ModalCopyButton from '~/vue_shared/components/modal_copy_button.vue';
...@@ -40,6 +40,7 @@ export default { ...@@ -40,6 +40,7 @@ export default {
directives: { directives: {
GlTooltip: GlTooltipDirective, GlTooltip: GlTooltipDirective,
SafeHtml,
}, },
props: { props: {
...@@ -150,7 +151,7 @@ export default { ...@@ -150,7 +151,7 @@ export default {
<template #modal-title> <template #modal-title>
{{ $options.modalTitle }} {{ $options.modalTitle }}
</template> </template>
<p v-html="helpText"></p> <p v-safe-html="helpText"></p>
<callout category="warning"> <callout category="warning">
<gl-sprintf <gl-sprintf
:message=" :message="
......
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