diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-02-23 02:05:47 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-22 18:05:47 +0000 |
commit | c9d0e63c202827756c637d9ca7bbde685c1984b7 (patch) | |
tree | 0063802c261722b7225e9802b7818593d9b195e2 /templates/mail/auth/activate_email.tmpl | |
parent | 5ed17d9895bf678374ef5227ca37870c1c170802 (diff) | |
download | gitea-c9d0e63c202827756c637d9ca7bbde685c1984b7.tar.gz gitea-c9d0e63c202827756c637d9ca7bbde685c1984b7.zip |
Remove unnecessary "Str2html" modifier from templates (#29319)
Follow #29165
Diffstat (limited to 'templates/mail/auth/activate_email.tmpl')
-rw-r--r-- | templates/mail/auth/activate_email.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/mail/auth/activate_email.tmpl b/templates/mail/auth/activate_email.tmpl index b15cc2a68a..3d32f80a4e 100644 --- a/templates/mail/auth/activate_email.tmpl +++ b/templates/mail/auth/activate_email.tmpl @@ -8,8 +8,8 @@ {{$activate_url := printf "%suser/activate_email?code=%s&email=%s" AppUrl (QueryEscape .Code) (QueryEscape .Email)}} <body> - <p>{{.locale.Tr "mail.hi_user_x" (.DisplayName|DotEscape) | Str2html}}</p><br> - <p>{{.locale.Tr "mail.activate_email.text" .ActiveCodeLives | Str2html}}</p><p><a href="{{$activate_url}}">{{$activate_url}}</a></p><br> + <p>{{.locale.Tr "mail.hi_user_x" (.DisplayName|DotEscape)}}</p><br> + <p>{{.locale.Tr "mail.activate_email.text" .ActiveCodeLives}}</p><p><a href="{{$activate_url}}">{{$activate_url}}</a></p><br> <p>{{.locale.Tr "mail.link_not_working_do_paste"}}</p> <p>© <a target="_blank" rel="noopener noreferrer" href="{{AppUrl}}">{{AppName}}</a></p> |