diff --git a/mod/lesson/pagetypes/branchtable.php b/mod/lesson/pagetypes/branchtable.php index ebee75e9a1b..70a765a791c 100644 --- a/mod/lesson/pagetypes/branchtable.php +++ b/mod/lesson/pagetypes/branchtable.php @@ -276,7 +276,7 @@ class lesson_add_page_form_branchtable extends lesson_add_page_form_base { $this->editoroptions = array('noclean'=>true, 'maxfiles'=>EDITOR_UNLIMITED_FILES, 'maxbytes'=>$PAGE->course->maxbytes); $mform->addElement('editor', 'contents_editor', get_string("pagecontents", "lesson"), null, $this->editoroptions); - $mform->setType('contents_editor', PARAM_CLEANHTML); + $mform->setType('contents_editor', PARAM_RAW); $mform->addElement('checkbox', 'layout', null, get_string("arrangebuttonshorizontally", "lesson")); $mform->setDefault('layout', true); @@ -287,7 +287,7 @@ class lesson_add_page_form_branchtable extends lesson_add_page_form_base { for ($i = 0; $i < $lesson->maxanswers; $i++) { $mform->addElement('header', 'headeranswer'.$i, get_string('branch', 'lesson').' '.($i+1)); $mform->addElement('textarea', 'answer['.$i.']', get_string("description", "lesson"), array('rows'=>10, 'cols'=>70, 'width'=>630, 'height'=>300)); - $mform->setType('answer['.$i.']', PARAM_CLEANHTML); + $mform->setType('answer['.$i.']', PARAM_RAW); if ($i == 0) { // we should have one required branch $mform->addRule('answer['.$i.']', null, 'required', null, 'server'); diff --git a/mod/lesson/pagetypes/cluster.php b/mod/lesson/pagetypes/cluster.php index b21c9e4f256..60633d8a929 100644 --- a/mod/lesson/pagetypes/cluster.php +++ b/mod/lesson/pagetypes/cluster.php @@ -113,7 +113,7 @@ class lesson_add_page_form_cluster extends lesson_add_page_form_base { $this->editoroptions = array('noclean'=>true, 'maxfiles'=>EDITOR_UNLIMITED_FILES, 'maxbytes'=>$PAGE->course->maxbytes); $mform->addElement('editor', 'contents_editor', get_string("pagecontents", "lesson"), null, $this->editoroptions); - $mform->setType('contents_editor', PARAM_CLEANHTML); + $mform->setType('contents_editor', PARAM_RAW); $this->add_jumpto(0); } diff --git a/mod/lesson/pagetypes/endofbranch.php b/mod/lesson/pagetypes/endofbranch.php index 7d949d7b395..22d97e664cd 100644 --- a/mod/lesson/pagetypes/endofbranch.php +++ b/mod/lesson/pagetypes/endofbranch.php @@ -172,7 +172,7 @@ class lesson_add_page_form_endofbranch extends lesson_add_page_form_base { $this->editoroptions = array('noclean'=>true, 'maxfiles'=>EDITOR_UNLIMITED_FILES, 'maxbytes'=>$PAGE->course->maxbytes); $mform->addElement('editor', 'contents_editor', get_string("pagecontents", "lesson"), null, $this->editoroptions); - $mform->setType('contents_editor', PARAM_CLEANHTML); + $mform->setType('contents_editor', PARAM_RAW); $this->add_jumpto(0); } diff --git a/mod/lesson/pagetypes/endofcluster.php b/mod/lesson/pagetypes/endofcluster.php index 014d7f4e036..0c18765c239 100644 --- a/mod/lesson/pagetypes/endofcluster.php +++ b/mod/lesson/pagetypes/endofcluster.php @@ -153,7 +153,7 @@ class lesson_add_page_form_endofcluster extends lesson_add_page_form_base { $this->editoroptions = array('noclean'=>true, 'maxfiles'=>EDITOR_UNLIMITED_FILES, 'maxbytes'=>$PAGE->course->maxbytes); $mform->addElement('editor', 'contents_editor', get_string("pagecontents", "lesson"), null, $this->editoroptions); - $mform->setType('contents_editor', PARAM_CLEANHTML); + $mform->setType('contents_editor', PARAM_RAW); $this->add_jumpto(0); } diff --git a/mod/lesson/pagetypes/essay.php b/mod/lesson/pagetypes/essay.php index 999e80b7a2c..bbae97111d8 100644 --- a/mod/lesson/pagetypes/essay.php +++ b/mod/lesson/pagetypes/essay.php @@ -264,7 +264,7 @@ class lesson_display_answer_form_essay extends moodleform { $mform->setType('pageid', PARAM_INT); $mform->addElement('editor', 'answer', get_string('youranswer', 'lesson'), null, null); - $mform->setType('answer', PARAM_CLEANHTML); + $mform->setType('answer', PARAM_RAW); $this->add_action_buttons(null, get_string("pleaseenteryouranswerinthebox", "lesson")); }