Commit c4b8a022 authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Merge branch '241966-Replace-v-html' into 'master'

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

See merge request gitlab-org/gitlab!41200
parents 142a67de b020cf02
<script>
/* eslint-disable vue/no-v-html */
import Vue from 'vue';
import { GlSafeHtmlDirective as SafeHtml } from '@gitlab/ui';
import { __ } from '~/locale';
import SuggestionDiff from './suggestion_diff.vue';
import { deprecatedCreateFlash as Flash } from '~/flash';
export default {
directives: {
SafeHtml,
},
props: {
lineType: {
type: String,
......@@ -116,6 +119,6 @@ export default {
<template>
<div>
<div class="flash-container js-suggestions-flash"></div>
<div v-show="isRendered" ref="container" class="md" v-html="noteHtml"></div>
<div v-show="isRendered" ref="container" v-safe-html="noteHtml" class="md"></div>
</div>
</template>
---
title: Replace v-html with v-safe-html in suggestions.vue
merge_request: 41200
author: Kev @KevSlashNull
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