diff --git a/mod/forum/search.php b/mod/forum/search.php index 046ffa68451..8dd39d9c2ec 100644 --- a/mod/forum/search.php +++ b/mod/forum/search.php @@ -296,6 +296,11 @@ foreach ($posts as $post) { // Prepare a link to the post in context, to be displayed after the forum post. $fulllink = "discussion#p$post->id\">".get_string("postincontext", "forum").""; + // Message is now html format. + if ($post->messageformat != FORMAT_HTML) { + $post->messageformat = FORMAT_HTML; + } + // Now pring the post. forum_print_post($post, $discussion, $forum, $cm, $course, false, false, false, $fulllink, '', -99, false);