#196 Use FORMAT_HTML when calling format_text()
This commit is contained in:
parent
24068856f1
commit
a42bc9ebe1
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