#196 Use FORMAT_HTML when calling format_text()

This commit is contained in:
Mark Nelson 2018-06-07 18:55:54 +08:00
parent 2687ee737f
commit 308b8d1e19

View file

@ -68,7 +68,7 @@ class element extends \mod_customcert\element {
*/
public function render($pdf, $preview, $user) {
$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)]);
\mod_customcert\element_helper::render_content($pdf, $this, $text);
}