diff --git a/mod/quiz/edit.php b/mod/quiz/edit.php index 1e5c3b34696..ff76e5a1b69 100644 --- a/mod/quiz/edit.php +++ b/mod/quiz/edit.php @@ -182,7 +182,7 @@ if ($randomcreate > 0) { - $form->name = get_string('random', 'quiz') .' ('. $category->name .')'; + $form->name = addslashes(get_string('random', 'quiz') .' ('. $category->name .')'); $form->questiontext = $recurse; // we use the questiontext field to store the info // on whether to include questions in subcategories $form->questiontextformat = 0;