MDL-5327 - When making up a default question name from the question text, strip any...
authortjhunt <tjhunt>
Thu, 27 Sep 2007 06:54:17 +0000 (06:54 +0000)
committertjhunt <tjhunt>
Thu, 27 Sep 2007 06:54:17 +0000 (06:54 +0000)
question/type/questiontype.php

index 15c7c4e3aa3adc57272754a78bd830f418bcb8cf..b5f46ae3793d3c2af36ab2345471adbd5748a84c 100644 (file)
@@ -255,7 +255,7 @@ class default_questiontype {
         }
 
         if (empty($question->name)) {
-            $question->name = shorten_text($question->questiontext, 15);
+            $question->name = shorten_text(strip_tags($question->questiontext), 15);
             if (empty($question->name)) {
                 $question->name = '-';
             }