Fix answer with apostrophe in fill in blanks see BT#14030

pull/2525/head
jmontoyaa 8 years ago
parent 0606f22cf8
commit ded87e0874
  1. 4
      main/exercise/fill_blanks.class.php

@ -675,13 +675,13 @@ class FillBlanks extends Question
},
$listSeveral
);
$studentAnswer = htmlspecialchars($studentAnswer);
//$studentAnswer = htmlspecialchars($studentAnswer);
$result = in_array($studentAnswer, $listSeveral);
break;
case self::FILL_THE_BLANK_STANDARD:
default:
$correctAnswer = api_html_entity_decode($correctAnswer);
$studentAnswer = htmlspecialchars($studentAnswer);
//$studentAnswer = htmlspecialchars($studentAnswer);
$result = $studentAnswer == self::trimOption($correctAnswer);
break;
}

Loading…
Cancel
Save