mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +02:00
MDL-11316 - Extra slashes appearing in the correct answer of shortanswer questions when they contain a slash.
This commit is contained in:
parent
f5446711d2
commit
c6b4a16884
1 changed files with 2 additions and 2 deletions
|
@ -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>');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue