fix: replace v-html with v-text in branch search inputbox

Co-authored-by: techknowlogick <techknowlogick@noreply.gitea.com>
(cherry picked from commit 7eef261c3ebf9bfe37fe0dceb51bde9a79bbaf17)
This commit is contained in:
Lunny Xiao 2024-09-04 10:52:00 +08:00 committed by Earl Warren
parent 12657eee5a
commit bb8796b3be
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -289,13 +289,11 @@ export default sfc; // activate IDE's Vue plugin
<a href="#" @click="createNewBranch()"> <a href="#" @click="createNewBranch()">
<div v-show="shouldCreateTag"> <div v-show="shouldCreateTag">
<i class="reference tags icon"/> <i class="reference tags icon"/>
<!-- eslint-disable-next-line vue/no-v-html --> <span v-text="textCreateTag.replace('%s', searchTerm)"/>
<span v-html="textCreateTag.replace('%s', searchTerm)"/>
</div> </div>
<div v-show="!shouldCreateTag"> <div v-show="!shouldCreateTag">
<svg-icon name="octicon-git-branch"/> <svg-icon name="octicon-git-branch"/>
<!-- eslint-disable-next-line vue/no-v-html --> <span v-text="textCreateBranch.replace('%s', searchTerm)"/>
<span v-html="textCreateBranch.replace('%s', searchTerm)"/>
</div> </div>
<div class="text small"> <div class="text small">
<span v-if="isViewBranch || release">{{ textCreateBranchFrom.replace('%s', branchName) }}</span> <span v-if="isViewBranch || release">{{ textCreateBranchFrom.replace('%s', branchName) }}</span>