#196 Use FORMAT_HTML when calling format_text()
This commit is contained in:
parent
3c7a854544
commit
5ced9220a4
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue