]> git.mjollnir.org Git - moodle.git/commitdiff
Strip tags from Excel and Text dumps
authormoodler <moodler>
Thu, 21 Aug 2003 03:05:50 +0000 (03:05 +0000)
committermoodler <moodler>
Thu, 21 Aug 2003 03:05:50 +0000 (03:05 +0000)
course/grades.php

index 41bc5426c5e427ca0f583d0ece445ff911b5f521..5f18c631d9fb9bace8b2a386609a44eff14d9704 100644 (file)
         $myxls->InsertText(get_string("firstname"));
         $myxls->InsertText(get_string("lastname"));
         foreach ($columns as $column) {
-            $myxls->InsertText($column);
+            $myxls->InsertText(strip_tags($column));
         }
         $myxls->InsertText(get_string("total"));
 
             $myxls->InsertText($student->lastname);
 
             foreach ($studentgrades as $grade) {
-                $myxls->InsertText($grade);
+                $myxls->InsertText(strip_tags($grade));
             }
             $myxls->InsertNumber($totals[$student->id]);
         }
 
         echo get_string("firstname")."\t".get_string("lastname");
         foreach ($columns as $column) {
+            $column = strip_tags($column);
             echo "\t$column";
         }
         echo "\t".get_string("total")."\n";
             $student = $students[$studentid];
             echo "$student->firstname\t$student->lastname";
             foreach ($studentgrades as $grade) {
+                $grade = strip_tags($grade);
                 echo "\t$grade";
             }
             echo "\t".$totals[$student->id];