diff --git a/templates/repo/branch_dropdown.tmpl b/templates/repo/branch_dropdown.tmpl
index ef34cc5cf..b7f4c9121 100644
--- a/templates/repo/branch_dropdown.tmpl
+++ b/templates/repo/branch_dropdown.tmpl
@@ -47,9 +47,9 @@
{{if .IsViewBranch}}
- {{.i18n.Tr "repo.branch.create_from" .BranchName | Safe}}
+ {{.i18n.Tr "repo.branch.create_from" .BranchName}}
{{else}}
- {{.i18n.Tr "repo.branch.create_from" (ShortSha .BranchName) | Safe}}
+ {{.i18n.Tr "repo.branch.create_from" (ShortSha .BranchName)}}
{{end}}