From e44d80a28d2f34d772f8b62dd03f8590f7d43343 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20B=C3=B6sch?= Date: Sun, 24 Aug 2025 22:42:18 +0200 Subject: [PATCH] MDL-86280 mod: Do not filter help text in activity chooser. Co-authored-by: Ferran Recio --- .../classes/local/exporters/course_content_item_exporter.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/course/classes/local/exporters/course_content_item_exporter.php b/public/course/classes/local/exporters/course_content_item_exporter.php index 0c59955a059..3532c5875a8 100644 --- a/public/course/classes/local/exporters/course_content_item_exporter.php +++ b/public/course/classes/local/exporters/course_content_item_exporter.php @@ -134,7 +134,8 @@ class course_content_item_exporter extends exporter { 'title' => $this->contentitem->get_title()->get_value(), 'link' => $this->contentitem->get_link()->out(false), 'icon' => $this->contentitem->get_icon(), - 'help' => format_text($this->contentitem->get_help(), FORMAT_MARKDOWN), + // Help text should not be parsed using course filters. + 'help' => format_text($this->contentitem->get_help(), FORMAT_MARKDOWN, ['filter' => false]), 'archetype' => $this->contentitem->get_archetype(), 'componentname' => $this->contentitem->get_component_name(), 'favourite' => $favourite,