Skip to content

Commit

Permalink
Replace v-html with v-text in search inputbox (#31966)
Browse files Browse the repository at this point in the history
Credit for @techknowlogick

Co-authored-by: techknowlogick <[email protected]>
  • Loading branch information
lunny and techknowlogick authored Sep 4, 2024
1 parent d5f35cc commit 7eef261
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions web_src/js/components/RepoBranchTagSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -289,13 +289,11 @@ export default sfc; // activate IDE's Vue plugin
<a href="#" @click="createNewBranch()">
<div v-show="shouldCreateTag">
<i class="reference tags icon"/>
<!-- eslint-disable-next-line vue/no-v-html -->
<span v-html="textCreateTag.replace('%s', searchTerm)"/>
<span v-text="textCreateTag.replace('%s', searchTerm)"/>
</div>
<div v-show="!shouldCreateTag">
<svg-icon name="octicon-git-branch"/>
<!-- eslint-disable-next-line vue/no-v-html -->
<span v-html="textCreateBranch.replace('%s', searchTerm)"/>
<span v-text="textCreateBranch.replace('%s', searchTerm)"/>
</div>
<div class="text small">
<span v-if="isViewBranch || release">{{ textCreateBranchFrom.replace('%s', branchName) }}</span>
Expand Down

0 comments on commit 7eef261

Please sign in to comment.