echo '<td class="topic starter">';
}
- echo '<div class="subject">'.format_string($post->subject).'</div>';
+ if (!empty($post->subjectkeeplinks)) {
+ echo '<div class="subject">'.format_string($post->subject, false).'</div>';
+ } else {
+ echo '<div class="subject">'.format_string($post->subject).'</div>';
+ }
echo '<div class="author">';
$fullname = fullname($post, has_capability('moodle/site:viewfullnames', $modcontext));
}
$post->subject = $fullsubject;
+ $post->subjectkeeplinks = true;
// Identify search terms only found in HTML markup, and add a warning about them to
// the start of the message text. However, do not do the highlighting here. forum_print_post