Commit 88e0e7d0 authored by Andrew Fontaine's avatar Andrew Fontaine

Merge branch...

Merge branch '241955-remove-v-html-from-app-assets-javascripts-diffs-components-diff_file_header-vue' into 'master'

Remove v-html from app/assets/javascripts/diffs/components/diff_file_header.vue

Closes #241955

See merge request gitlab-org/gitlab!41483
parents 6a35648e ba640cfb
<script> <script>
/* eslint-disable vue/no-v-html */
import { escape } from 'lodash'; import { escape } from 'lodash';
import { mapActions, mapGetters } from 'vuex'; import { mapActions, mapGetters } from 'vuex';
import { import {
...@@ -219,16 +218,16 @@ export default { ...@@ -219,16 +218,16 @@ export default {
<span v-if="isFileRenamed"> <span v-if="isFileRenamed">
<strong <strong
v-gl-tooltip v-gl-tooltip
v-safe-html="diffFile.old_path_html"
:title="diffFile.old_path" :title="diffFile.old_path"
class="file-title-name" class="file-title-name"
v-html="diffFile.old_path_html"
></strong> ></strong>
<strong <strong
v-gl-tooltip v-gl-tooltip
v-safe-html="diffFile.new_path_html"
:title="diffFile.new_path" :title="diffFile.new_path"
class="file-title-name" class="file-title-name"
v-html="diffFile.new_path_html"
></strong> ></strong>
</span> </span>
...@@ -296,9 +295,9 @@ export default { ...@@ -296,9 +295,9 @@ export default {
<a <a
v-if="diffFile.replaced_view_path" v-if="diffFile.replaced_view_path"
ref="replacedFileButton" ref="replacedFileButton"
v-safe-html="viewReplacedFileButtonText"
:href="diffFile.replaced_view_path" :href="diffFile.replaced_view_path"
class="btn view-file" class="btn view-file"
v-html="viewReplacedFileButtonText"
> >
</a> </a>
<gl-deprecated-button <gl-deprecated-button
......
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