diff --git a/main/exercice/exercise.lib.php b/main/exercice/exercise.lib.php
index 2da0844ca0..37fa1bd161 100755
--- a/main/exercice/exercise.lib.php
+++ b/main/exercice/exercise.lib.php
@@ -226,20 +226,12 @@ function showQuestion($questionId, $onlyAnswers = false, $origin = false, $curre
}
$answer = api_parse_tex($answer);
$answer = Security::remove_XSS($answer, STUDENT);
- /*
- $s .= '
';
- $s .= '
-
- ';
- $s .= ' ';
- $s .= $answer;
- $s .= ' ';
- $s .= ' |
';
- */
- $s .= '';
- $s .= '';
- $s .= ' ';
- $s .= ' | '.$answer.' |
';
+ $s .= ''.
+ ''.
+ ' '.
+ ' '.
+ $answer.
+ ' |
';
} elseif ($answerType == MULTIPLE_ANSWER) {
// multiple answers
@@ -254,20 +246,12 @@ function showQuestion($questionId, $onlyAnswers = false, $origin = false, $curre
}
$answer = api_parse_tex($answer);
$answer = Security::remove_XSS($answer, STUDENT);
- /*
- $s .= '';
- $s .= '
-
- ';
- $s .= ' ';
- $s .= $answer;
- $s .= ' ';
- $s .= ' |
';
- */
- $s .= '';
- $s .= '';
- $s .= ' | ';
- $s .= ''.$answer.' |
';
+ $s .= ''.
+ ''.
+ ' '.
+ ' '.
+ $answer.
+ ' |
';
} elseif ($answerType == MULTIPLE_ANSWER_COMBINATION) {
// multiple answers
@@ -282,20 +266,12 @@ function showQuestion($questionId, $onlyAnswers = false, $origin = false, $curre
}
$answer = api_parse_tex($answer);
$answer = Security::remove_XSS($answer, STUDENT);
- /*
- $s .= '';
- $s .= '
-
- ';
- $s .= ' ';
- $s .= $answer;
- $s .= ' ';
- $s .= ' |
';
- */
- $s .= '';
- $s .= '';
- $s .= ' ';
- $s .= ' | '.$answer.' |
';
+ $s .= ''.
+ ''.
+ ' '.
+ ' '.
+ $answer.
+ ' |
';
} elseif ($answerType == FILL_IN_BLANKS) {
// fill in blanks