}
} else { // Tolerance can stay undefined for non numerical questions
// 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);
$remainingalts = $tmp[1];