#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.
This commit is contained in:
Mark Nelson 2018-06-07 20:10:34 +08:00
parent 5fe9057758
commit fa89eb1a55

View file

@ -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);
}