#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:
parent
ff31b4b824
commit
743d1fb86a
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ class element extends \mod_customcert\element {
|
||||||
*/
|
*/
|
||||||
public function render_html() {
|
public function render_html() {
|
||||||
$courseid = \mod_customcert\element_helper::get_courseid($this->get_id());
|
$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);
|
return \mod_customcert\element_helper::render_html_content($this, $text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue