diff --git a/external.php b/external.php index c35cac0..53eefde 100755 --- a/external.php +++ b/external.php @@ -708,7 +708,7 @@ public static function get_comments($noteid) { $comment = (object)[]; $comment->id = $note->id; $comment->noteid = $note->noteid; - $comment->content = $note->content; + $comment->content = clean_param($note->content, PARAM_TEXT); $comment->candelete = (($canpost && $note->userid === $USER->id) || $candeleteall) ? true : false; $comment->date = userdate($note->timecreated); $comments[] = $comment;