Details
Description
When reviewing quiz attempts (mod/quiz/review.php), correct answers for short answer questions are displayed with slashes before quotes (see attachment).
To get rid of this I did:
— question/type/shortanswer/questiontype.php ORIGINAL
+++ question/type/shortanswer/questiontype.php MODIFIED
@@ -378,7 +378,7 @@
// MDL-7496
if ($correctanswer)
} else {
@@ -387,7 +387,7 @@
print_string('incorrect', 'quiz');
if ($correctanswer) { echo ('<div class="correctness">');- print_string('correctansweris', 'quiz', s($correctanswer));+ print_string('correctansweris', 'quiz', s($correctanswer, TRUE)); // TRUE added, otherwise slashes remained in the answer echo ('</div>'); }
}