Index: lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaLearningAction.java =================================================================== diff -u -r7fec76d9b1b311ff1eed0178ceb12050648e6ef7 -r13bd2bbd4fb43e5bb39e3a3883632dfd0b64ba25 --- lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaLearningAction.java (.../QaLearningAction.java) (revision 7fec76d9b1b311ff1eed0178ceb12050648e6ef7) +++ lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaLearningAction.java (.../QaLearningAction.java) (revision 13bd2bbd4fb43e5bb39e3a3883632dfd0b64ba25) @@ -1102,15 +1102,21 @@ for (QaUsrResp response : responses) { QaQueUsr user = response.getQaQueUser(); + /* LDEV-3891: This code has been commented out, as the escapeCsv puts double quotes in the string, which goes through to the + * client and wrecks img src entries. It appears the browser cannot process the string with all the double quotes. + * This is the second time it is being fixed - the escapeCsv was removed in LDEV-3448 and then added back in + * when Peer Review was added (LDEV-3480). If escapeCsv needs to be added in again, make sure it does not break + * learner added images being seen in monitoring. //remove leading and trailing quotes String answer = StringEscapeUtils.escapeCsv(response.getAnswer()); if (isAllowRichEditor && answer.startsWith("\"") && answer.length() >= 3) { answer = answer.substring(1, answer.length() - 1); } + */ JSONObject responseRow = new JSONObject(); responseRow.put("responseUid", response.getResponseId().toString()); - responseRow.put("answer", answer); + responseRow.put("answer", response.getAnswer()); responseRow.put("userName", StringEscapeUtils.escapeCsv(user.getFullname())); responseRow.put("visible", new Boolean(response.isVisible()).toString());