Commit ba640cfb authored by Takuya Noguchi's avatar Takuya Noguchi

Remove v-html from diffs/.../diff_file_header.vue

Signed-off-by: default avatarTakuya Noguchi <takninnovationresearch@gmail.com>
parent 117df1e9
<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 {
...@@ -210,16 +209,16 @@ export default { ...@@ -210,16 +209,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>
...@@ -284,9 +283,9 @@ export default { ...@@ -284,9 +283,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