Skip to content

Commit

Permalink
MDL-76645 filter_data: fix link title attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak authored and Jenkins committed Mar 8, 2023
1 parent 0e3c8eb commit 1899e03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filter/data/filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public function filter($text, array $options = array()) {
usort($contents, 'filter_data::sort_entries_by_length');

foreach ($contents as $content) {
$href_tag_begin = '<a class="data autolink dataid'.$content->dataid.'" title="'.$content->content.'" '.
$href_tag_begin = '<a class="data autolink dataid'.$content->dataid.'" title="'.s($content->content).'" '.
'href="'.$CFG->wwwroot.'/mod/data/view.php?d='.$content->dataid.
'&amp;rid='.$content->recordid.'">';
$contentlist[] = new filterobject($content->content, $href_tag_begin, '</a>', false, true);
Expand Down

0 comments on commit 1899e03

Please sign in to comment.