Index: lams_tool_scratchie/src/java/org/lamsfoundation/lams/tool/scratchie/web/action/AuthoringAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_scratchie/src/java/org/lamsfoundation/lams/tool/scratchie/web/action/AuthoringAction.java,v diff -u -r1.9 -r1.10 --- lams_tool_scratchie/src/java/org/lamsfoundation/lams/tool/scratchie/web/action/AuthoringAction.java 20 Mar 2013 13:44:13 -0000 1.9 +++ lams_tool_scratchie/src/java/org/lamsfoundation/lams/tool/scratchie/web/action/AuthoringAction.java 13 Jun 2013 10:10:56 -0000 1.10 @@ -1136,7 +1136,6 @@ String answerDescription = answer.getDescription(); if (answerDescription != null) { answerDescription = answerDescription.replaceAll("[\n\r\f]", ""); - answerDescription = answerDescription.replaceAll("[\"]", """); answer.setDescription(answerDescription); } } Index: lams_tool_scratchie/src/java/org/lamsfoundation/lams/tool/scratchie/web/action/MonitoringAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_scratchie/src/java/org/lamsfoundation/lams/tool/scratchie/web/action/MonitoringAction.java,v diff -u -r1.9 -r1.10 --- lams_tool_scratchie/src/java/org/lamsfoundation/lams/tool/scratchie/web/action/MonitoringAction.java 3 May 2013 16:12:18 -0000 1.9 +++ lams_tool_scratchie/src/java/org/lamsfoundation/lams/tool/scratchie/web/action/MonitoringAction.java 13 Jun 2013 10:10:56 -0000 1.10 @@ -45,6 +45,7 @@ import org.lamsfoundation.lams.tool.scratchie.dto.GroupSummary; import org.lamsfoundation.lams.tool.scratchie.dto.ReflectDTO; import org.lamsfoundation.lams.tool.scratchie.model.Scratchie; +import org.lamsfoundation.lams.tool.scratchie.model.ScratchieAnswer; import org.lamsfoundation.lams.tool.scratchie.model.ScratchieItem; import org.lamsfoundation.lams.tool.scratchie.model.ScratchieSession; import org.lamsfoundation.lams.tool.scratchie.model.ScratchieUser; @@ -133,6 +134,15 @@ Long contentId = (Long) sessionMap.get(ScratchieConstants.ATTR_TOOL_CONTENT_ID); List summaryList = getScratchieService().getQuestionSummary(contentId, itemUid); + + // Removes all the html tags from an answer descriptions + for (GroupSummary summary : summaryList) { + for (ScratchieAnswer answer : summary.getAnswers()) { + String description = (answer.getDescription() == null) ? "" : answer.getDescription() + .replaceAll("\\<.*?>", "").replaceAll("[\"]", """); + answer.setDescription(description); + } + } request.setAttribute(ScratchieConstants.ATTR_SUMMARY_LIST, summaryList); return mapping.findForward(ScratchieConstants.SUCCESS);