package clientreport import ( "strings" "testing" "github.com/warmbly/warmbly/internal/app/brandkit" "github.com/warmbly/warmbly/internal/models" ) func TestReportEmailInterpolatesOnlyDisplaySafeNames(t *testing.T) { rep := &models.ClientReport{Name: "Visit evil.example now"} positive := 4 view := &models.ClientReportView{From: "2026-11-01", To: "2026-11-07", Overview: &models.ClientReportOverview{Sent: 12345, Replied: 40, ReplyRate: 0.32, Positive: &positive, BounceRate: 1.25}, Campaigns: []models.ClientReportCampaign{{Name: "https://phish.example", Sent: 10}, {Name: "Dentists", Sent: 5}}} brand := brandkit.Brand{Name: "Acme