]> git.mjollnir.org Git - moodle.git/commitdiff
Allow cloze questions to contain quotes
authormoodler <moodler>
Mon, 8 Mar 2004 13:09:42 +0000 (13:09 +0000)
committermoodler <moodler>
Mon, 8 Mar 2004 13:09:42 +0000 (13:09 +0000)
mod/quiz/format/multianswer/format.php

index a7fd72e1f9d0a06f76c40c73ab186078abdfccb9..2fa622e566bcb272d647695316976a412eb2e15b 100644 (file)
@@ -147,7 +147,7 @@ class quiz_file_format extends quiz_default_format {
     /// multianswer import
 
         $questions= array();
-        $thequestion= extractMultiAnswerQuestion(implode('',$lines));
+        $thequestion= extractMultiAnswerQuestion(addslashes(implode('',$lines)));
 
         if (!empty($thequestion)) {
             $thequestion->name = $lines[0];