Skip to content

Commit 7eef261

Browse files
lunnytechknowlogick
and
techknowlogick
authored
Replace v-html with v-text in search inputbox (#31966)
Credit for @techknowlogick Co-authored-by: techknowlogick <[email protected]>
1 parent d5f35cc commit 7eef261

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Diff for: web_src/js/components/RepoBranchTagSelector.vue

+2-4
Original file line numberDiff line numberDiff line change
@@ -289,13 +289,11 @@ export default sfc; // activate IDE's Vue plugin
289289
<a href="#" @click="createNewBranch()">
290290
<div v-show="shouldCreateTag">
291291
<i class="reference tags icon"/>
292-
<!-- eslint-disable-next-line vue/no-v-html -->
293-
<span v-html="textCreateTag.replace('%s', searchTerm)"/>
292+
<span v-text="textCreateTag.replace('%s', searchTerm)"/>
294293
</div>
295294
<div v-show="!shouldCreateTag">
296295
<svg-icon name="octicon-git-branch"/>
297-
<!-- eslint-disable-next-line vue/no-v-html -->
298-
<span v-html="textCreateBranch.replace('%s', searchTerm)"/>
296+
<span v-text="textCreateBranch.replace('%s', searchTerm)"/>
299297
</div>
300298
<div class="text small">
301299
<span v-if="isViewBranch || release">{{ textCreateBranchFrom.replace('%s', branchName) }}</span>

0 commit comments

Comments
 (0)