diff --git a/internal/answerwc/template/to_client.tmpl b/internal/answerwc/template/to_client.tmpl
index 2c98634..7450cbb 100644
--- a/internal/answerwc/template/to_client.tmpl
+++ b/internal/answerwc/template/to_client.tmpl
@@ -483,7 +483,7 @@
{{ range .AllAnswers }}
- {{ if index $.QuestionsMap .AnswerID }}
+ {{ if keyExists $.QuestionsMap .AnswerID }}
%s
", res.Description, strings.Replace(res.Image,"http","https",1)))
+ builder.WriteString(fmt.Sprintf("%s
 | ", res.Description, strings.Replace(res.Image, "http", "https", 1)))
}
}
@@ -105,7 +110,7 @@ func sanitizeHTMLData(data TemplateData) TemplateData {
AllAnswers: stripHTMLResultAnswers(data.AllAnswers),
QuestionsMap: stripHTMLResultMap(data.QuestionsMap),
AnswerTime: StripHTML(data.AnswerTime),
- QuizID: data.QuizID,
+ QuizID: data.QuizID,
}
return sanitized
}
diff --git a/tests/mail/to_client.tmpl b/tests/mail/to_client.tmpl
index fe36b93..7450cbb 100644
--- a/tests/mail/to_client.tmpl
+++ b/tests/mail/to_client.tmpl
@@ -80,6 +80,7 @@
| |