Merge branch 'MDL-87289-main' of https://github.com/raortegar/moodle

This commit is contained in:
Huong Nguyen
2026-02-03 10:43:41 +07:00
@@ -69,6 +69,11 @@ class renderer extends \mod_forum_renderer {
$options = new \stdClass();
$options->para = true;
$options->context = $context;
$options->filter = false; // Disable auto-filters to apply them manually below.
// Apply filters, excluding those incompatible with email output.
$skipfilters = ['mediaplugin'];
$message = \core_filters\filter_manager::instance()->filter_text($message, $context, [], $skipfilters);
return format_text($message, $post->messageformat, $options);
}