Skip to content

Commit

Permalink
Merge pull request #21912 from akinwale/task-20081
Browse files Browse the repository at this point in the history
fix: do not escape HTML special chars for an invite's welcomeNote
  • Loading branch information
cristipaval authored Jul 31, 2023
2 parents 8cdb506 + 9294e9e commit 1eb16f3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/libs/actions/Policy.js
Original file line number Diff line number Diff line change
Expand Up @@ -434,8 +434,9 @@ function addMembersToWorkspace(invitedEmailsToAccountIDs, welcomeNote, policyID,
const params = {
employees: JSON.stringify(_.map(logins, (login) => ({email: login}))),

// Escape HTML special chars to enable them to appear in the invite email
welcomeNote: _.escape(welcomeNote),
// Do not escape HTML special chars for welcomeNote as this will be handled in the backend.
// See https://github.com/Expensify/App/issues/20081 for more details.
welcomeNote,
policyID,
};
if (!_.isEmpty(membersChats.reportCreationData)) {
Expand Down

0 comments on commit 1eb16f3

Please sign in to comment.