Skip to content
Snippets Groups Projects
Commit 8e785cf5 authored by srosse's avatar srosse
Browse files

no-jira: escape wrong answers

parent 28ff7b64
No related branches found
No related tags found
No related merge requests found
...@@ -90,7 +90,7 @@ public class ResponseInfos { ...@@ -90,7 +90,7 @@ public class ResponseInfos {
for(String answer:wrongAnswers) { for(String answer:wrongAnswers) {
if(sb.length() > 0) sb.append(", "); if(sb.length() > 0) sb.append(", ");
if(StringHelper.containsNonWhitespace(answer)) { if(StringHelper.containsNonWhitespace(answer)) {
sb.append(answer); sb.append(StringHelper.escapeHtml(answer));
} else { } else {
sb.append("\"\""); sb.append("\"\"");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment