function glossary_print_entry_concept($entry) {
$options = new object();
$options->para = false;
- $text = format_text(print_heading($entry->concept, '', 3, 'nolink'), FORMAT_MOODLE, $options);
+ $text = format_text(print_heading($entry->concept, '', 3, 'nolink', true), FORMAT_MOODLE, $options);
if (!empty($entry->highlight)) {
$text = highlight($entry->highlight, $text);
}
$return = '<span class="commands">';
// Differentiate links for each entry.
- $altsuffix = ': '.$entry->concept;
+ $altsuffix = ': '.strip_tags(format_text($entry->concept));
+
if (!$entry->approved) {
$output = true;
$return .= get_string('entryishidden','glossary');