Browse Source

Fix fill in blanks FILL_THE_BLANK_SEVERAL_ANSWER with ö/ë chars BT#14184

jmontoyaa 7 years ago
parent
commit
33cfa26731
1 changed files with 2 additions and 1 deletions
  1. 2 1
      main/exercise/fill_blanks.class.php

+ 2 - 1
main/exercise/fill_blanks.class.php

@@ -664,10 +664,11 @@ class FillBlanks extends Question
                 $listSeveral = self::getFillTheBlankSeveralAnswers($correctAnswer);
                 $listSeveral = array_map(
                     function ($item) {
-                        return self::trimOption($item);
+                        return self::trimOption(api_html_entity_decode($item));
                     },
                     $listSeveral
                 );
+                $studentAnswer = htmlspecialchars($studentAnswer);
                 $result = in_array($studentAnswer, $listSeveral);
                 break;
             case self::FILL_THE_BLANK_STANDARD: