From ded87e0874a3995aceee76a6502a7b4c2b79cb58 Mon Sep 17 00:00:00 2001 From: jmontoyaa Date: Mon, 21 May 2018 10:49:15 +0200 Subject: [PATCH] Fix answer with apostrophe in fill in blanks see BT#14030 --- main/exercise/fill_blanks.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/exercise/fill_blanks.class.php b/main/exercise/fill_blanks.class.php index 059246beac..649d0a9120 100755 --- a/main/exercise/fill_blanks.class.php +++ b/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; }