]> source.dussan.org Git - gitea.git/commitdiff
Replace v-html with v-text in search inputbox (#31966)
authorLunny Xiao <xiaolunwen@gmail.com>
Wed, 4 Sep 2024 02:52:00 +0000 (10:52 +0800)
committerGitHub <noreply@github.com>
Wed, 4 Sep 2024 02:52:00 +0000 (02:52 +0000)
Credit for @techknowlogick

Co-authored-by: techknowlogick <techknowlogick@noreply.gitea.com>
web_src/js/components/RepoBranchTagSelector.vue

index 00c2955f55c528e2b0f2d111bf56ef29ccd6b9b2..7aecb1e351d9b13464dec394f281e0344973fd43 100644 (file)
@@ -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>