MDL-11316 - Extra slashes appearing in the correct answer of shortanswer questions when they contain a slash.

This commit is contained in:
tjhunt 2007-09-21 18:28:31 +00:00
parent f5446711d2
commit c6b4a16884

View file

@ -378,7 +378,7 @@ class question_shortanswer_qtype extends default_questiontype {
// MDL-7496 // MDL-7496
if ($correctanswer) { if ($correctanswer) {
echo ('<div class="correctness">'); echo ('<div class="correctness">');
print_string('correctansweris', 'quiz', s($correctanswer)); print_string('correctansweris', 'quiz', s($correctanswer, true));
echo ('</div>'); echo ('</div>');
} }
} else { } else {
@ -387,7 +387,7 @@ class question_shortanswer_qtype extends default_questiontype {
print_string('incorrect', 'quiz'); print_string('incorrect', 'quiz');
if ($correctanswer) { if ($correctanswer) {
echo ('<div class="correctness">'); echo ('<div class="correctness">');
print_string('correctansweris', 'quiz', s($correctanswer)); print_string('correctansweris', 'quiz', s($correctanswer, true));
echo ('</div>'); echo ('</div>');
} }
} }