From 14bf865905f09a2a0d7a9b38b28f9d1c2ec55878 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/course/classes/local/exporters/course_content_item_exporter.php b/course/classes/local/exporters/course_content_item_exporter.php index 4106b418147..15e3c297f78 100644 --- a/course/classes/local/exporters/course_content_item_exporter.php +++ b/course/classes/local/exporters/course_content_item_exporter.php @@ -133,7 +133,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,