diff --git a/main/exercise/fill_blanks.class.php b/main/exercise/fill_blanks.class.php index 1b1aa83d9f..5def3a02dd 100755 --- a/main/exercise/fill_blanks.class.php +++ b/main/exercise/fill_blanks.class.php @@ -1333,6 +1333,7 @@ class FillBlanks extends Question $answer = htmlentities(api_utf8_encode($answer), ENT_QUOTES); $answer = str_replace(''', ''', $answer); // fix apostrophe $answer = api_preg_replace('/\s\s+/', ' ', $answer); // replace excess white spaces + $answer = strtr($answer, array_flip(get_html_translation_table(HTML_ENTITIES, ENT_QUOTES))); return trim($answer); }