From 9b4b6c938165f57ea6265af5bfea6b98021ed0f2 Mon Sep 17 00:00:00 2001 From: Philipp Memmel Date: Fri, 20 Oct 2023 06:40:36 +0000 Subject: [PATCH] MBS-8303: Fix wrong usage of format_text --- classes/external/get_kanban_content.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/external/get_kanban_content.php b/classes/external/get_kanban_content.php index 2cdd0954..f2e17372 100644 --- a/classes/external/get_kanban_content.php +++ b/classes/external/get_kanban_content.php @@ -643,7 +643,7 @@ public static function get_discussion_update(int $cmid, int $boardid, int $cardi $formatter = new updateformatter(); foreach ($discussions as $discussion) { - $discussion->content = format_text($discussion->content, true, ['escape' => false]); + $discussion->content = format_text($discussion->content, FORMAT_HTML); $discussion->candelete = $discussion->userid == $USER->id || has_capability('mod/kanban:manageboard', $context); $discussion->username = fullname(\core_user::get_user($discussion->userid)); $formatter->put('discussions', (array) $discussion);