]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-11316 - Extra slashes appearing in the correct answer of shortanswer questions...
authortjhunt <tjhunt>
Fri, 21 Sep 2007 18:28:45 +0000 (18:28 +0000)
committertjhunt <tjhunt>
Fri, 21 Sep 2007 18:28:45 +0000 (18:28 +0000)
question/type/shortanswer/questiontype.php

index 797b63b689076e94a2a9acb3e1cb225cdbcab739..5637a302712acdc4390a8ff93505629441cdf296 100644 (file)
@@ -382,7 +382,7 @@ class question_shortanswer_qtype extends default_questiontype {
                     // MDL-7496
                     if ($correctanswer) {
                         echo ('<div class="correctness">');
-                        print_string('correctansweris', 'quiz', s($correctanswer));
+                        print_string('correctansweris', 'quiz', s($correctanswer, true));
                         echo ('</div>');
                     }
                 } else {
@@ -391,7 +391,7 @@ class question_shortanswer_qtype extends default_questiontype {
                     print_string('incorrect', 'quiz');
                     if ($correctanswer) {
                         echo ('<div class="correctness">');
-                        print_string('correctansweris', 'quiz', s($correctanswer));
+                        print_string('correctansweris', 'quiz', s($correctanswer, true));
                         echo ('</div>');
                     }
                 }