mirror of
https://github.com/moodle/moodle.git
synced 2025-07-25 16:21:47 +02:00
MDL-11271 - The closing bracket "}" can't be used in cloze question type. Now, you can excape a closing } with a backslash. Merged from MOODLE_18_STABLE.
This commit is contained in:
@@ -715,7 +715,8 @@ function qtype_multianswer_extract_question($text) {
|
|||||||
}
|
}
|
||||||
} else { // Tolerance can stay undefined for non numerical questions
|
} else { // Tolerance can stay undefined for non numerical questions
|
||||||
// Undo quoting done by the HTML editor.
|
// Undo quoting done by the HTML editor.
|
||||||
$wrapped->answer[] = html_entity_decode($altregs[ANSWER_ALTERNATIVE_REGEX_ANSWER], ENT_QUOTES, 'UTF-8');
|
$answer = html_entity_decode($altregs[ANSWER_ALTERNATIVE_REGEX_ANSWER], ENT_QUOTES, 'UTF-8');
|
||||||
|
$wrapped->answer[] = str_replace('\}', '}', $answer);
|
||||||
}
|
}
|
||||||
$tmp = explode($altregs[0], $remainingalts, 2);
|
$tmp = explode($altregs[0], $remainingalts, 2);
|
||||||
$remainingalts = $tmp[1];
|
$remainingalts = $tmp[1];
|
||||||
|
Reference in New Issue
Block a user