diff --git a/src/libs/actions/Report.js b/src/libs/actions/Report.js index 6d02b7a32ffb..c0c6e9d0437b 100644 --- a/src/libs/actions/Report.js +++ b/src/libs/actions/Report.js @@ -1103,6 +1103,7 @@ function deleteReportComment(reportID, reportAction) { // Populate last message details const lastMessageDetails = {}; if (lastReportAction) { + // Replace line breaks with spaces and remove all HTML from the message lastMessageDetails.lastMessageText = lastReportAction.isAttachment ? '[Attachment]' : _.last(lastReportAction.message)