From 7bff2c5367eaf9c1a08f65272da97007e4ac97d4 Mon Sep 17 00:00:00 2001 From: Mark Nelson Date: Thu, 7 Jun 2018 20:10:34 +0800 Subject: [PATCH] #196 Use FORMAT_HTML when calling format_text() (again) This commit is not as vital as the previous one as it does not affect the layout of the PDF. --- element/text/classes/element.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/element/text/classes/element.php b/element/text/classes/element.php index 659301d..a2909df 100644 --- a/element/text/classes/element.php +++ b/element/text/classes/element.php @@ -82,7 +82,7 @@ class element extends \mod_customcert\element { */ public function render_html() { $courseid = \mod_customcert\element_helper::get_courseid($this->get_id()); - $text = format_text($this->get_data(), FORMAT_MOODLE, ['context' => \context_course::instance($courseid)]); + $text = format_text($this->get_data(), FORMAT_HTML, ['context' => \context_course::instance($courseid)]); return \mod_customcert\element_helper::render_html_content($this, $text); }