Skip to content

Commit

Permalink
TW21243544, cleaning comments for exporting
Browse files Browse the repository at this point in the history
  • Loading branch information
MichPound committed Feb 17, 2025
1 parent ffdb962 commit 63cd7ac
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions classes/tables/comments_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,17 @@ public function other_cols($colname, $value) {
}
}

/**
* Format each row of returned data.
*
* @param array|object $row row of data from db used to make one row of the table.
* @return array one row for the table with sanitised content.
*/
public function format_row($row): array {
$row->content = clean_param($row->content, PARAM_TEXT);
return parent::format_row($row);
}

/**
* Displays the table.
*/
Expand Down

0 comments on commit 63cd7ac

Please sign in to comment.