diff --git a/src/frontend/templates/service.html b/src/frontend/templates/service.html
index 80b1a7b..298b3ed 100644
--- a/src/frontend/templates/service.html
+++ b/src/frontend/templates/service.html
@@ -230,13 +230,13 @@
{{ else if or (eq .Platform "mail") (eq .Platform "email") }}
-
+
- {{.Link}}
+ {{mailsafe .Link}}
{{ else if eq .Platform "url" }}
diff --git a/src/server/server.go b/src/server/server.go
index dec2e7c..66325e7 100644
--- a/src/server/server.go
+++ b/src/server/server.go
@@ -207,6 +207,10 @@ func (s *Server) RegisterViews() {
}
return time.Since(tm) < 7*(24*time.Hour)
},
+ "mailsafe": func(input string) string {
+ input = strings.ReplaceAll(input, "@", "[at]")
+ return strings.ReplaceAll(input, ".", "[dot]")
+ },
})
s.Router.RegisterView(blocks)
}