Skip to content

[Due for payment 2025-11-26] [$250] Expense - "moved this expense to your personal space" shows HTML tags in thread #74713

Closed

Description

@jponikarchuk

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 9.2.48-0
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from BrowserStack: Exp
Email or phone of affected tester (no customers): sdjodsnijdsojso@gmail.com
Issue reported by: Applause Internal Team
Device used: Mac 15.5 / Chrome
App Component: Money Requests

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to workspace chat.
  3. Create an expense.
  4. Open the transaction thread.
  5. Click Report.
  6. Click Remove from report.
  7. Go to self DM.
  8. Open the unreported expense.
  9. Right click on "moved this expense to your personal space" system message.
  10. Click Reply in thread.

Expected Result:

"moved this expense to your personal space" system message will not show HTML tags in thread header.

Actual Result:

"moved this expense to your personal space" system message shows HTML tags in thread header.

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

1.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021987916743173247281
  • Upwork Job ID: 1987916743173247281
  • Last Price Increase: 2025-11-10
Issue OwnerCurrent Issue Owner: @strepanier03

Activity

  1. added
    DeployBlockerCashThis issue or pull request should block deployment
    BugSomething is broken. Auto assigns a BugZero manager.
    on Nov 10, 2025
  2. melvin-bot commented on Nov 10, 2025

    @melvin-bot

    Triggered auto assignment to @strepanier03 (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

  3. melvin-bot commented on Nov 10, 2025

    @melvin-bot

    Triggered auto assignment to @carlosmiceli (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

  4. melvin-bot commented on Nov 10, 2025

    @melvin-bot

    💬 A slack conversation has been started in #expensify-open-source

  5. github-actions commented on Nov 10, 2025

    @github-actions
    Contributor

    👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

    1. Identify the pull request that introduced this issue and revert it.
    2. Find someone who can quickly fix the issue.
    3. Fix the issue yourself.
  6. samranahm commented on Nov 10, 2025

    @samranahm
    Contributor

    🚨 Edited by proposal-police: This proposal was edited at 2025-11-10 16:15:50 UTC.

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    Expense - "moved this expense to your personal space" shows HTML tags in thread

    What is the root cause of that problem?

    We are displaying the message directly here in getReportName

    App/src/libs/ReportUtils.ts

    Lines 5603 to 5605 in 23b260f

    if (isActionOfType(parentReportAction, CONST.REPORT.ACTIONS.TYPE.UNREPORTED_TRANSACTION)) {
    return getUnreportedTransactionMessage();
    }

    that contain html tags

    unreportedTransaction: ({reportUrl}: MovedTransactionParams) => `moved this expense to your <a href="${reportUrl}">personal space</a>`,

    What changes do you think we should make in order to solve the problem?

    We should use Parser.htmlToText here

    App/src/libs/ReportUtils.ts

    Lines 5603 to 5605 in 23b260f

    if (isActionOfType(parentReportAction, CONST.REPORT.ACTIONS.TYPE.UNREPORTED_TRANSACTION)) {
    return getUnreportedTransactionMessage();
    }

      if (isActionOfType(parentReportAction, CONST.REPORT.ACTIONS.TYPE.UNREPORTED_TRANSACTION)) {
          return Parser.htmlToText(getUnreportedTransactionMessage());
      }

    What alternative solutions did you explore? (Optional)

    Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.

  7. added
    ExternalAdded to denote the issue can be worked on by a contributor
    on Nov 10, 2025
  8. melvin-bot commented on Nov 10, 2025

    @melvin-bot
  9. 9 remaining items

  10. daledah commented on Nov 10, 2025

    @daledah
    Contributor

    @carlosmiceli @brunovjk since this issue is marked as a deploy blocker, i can help to open the quick PR if needed

  11. removed
    DeployBlockerCashThis issue or pull request should block deployment
    Help WantedApply this label when an issue is open to proposals by contributors
    on Nov 10, 2025
  12. cristipaval commented on Nov 10, 2025

    @cristipaval
    Contributor

    This is fixed after we reverted the culprit.

  13. melvin-bot commented on Nov 19, 2025

    @melvin-bot

    ⚠️ Looks like this issue was linked to a Deploy Blocker here

    If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

    If a regression has occurred and you are the assigned CM follow the instructions here.

    If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

  14. added
    Awaiting PaymentAuto-added when associated PR is deployed to production
    and removed on Nov 19, 2025
  15. changed the title [-][$250] Expense - "moved this expense to your personal space" shows HTML tags in thread[/-] [+][Due for payment 2025-11-26] [$250] Expense - "moved this expense to your personal space" shows HTML tags in thread[/+] on Nov 19, 2025
  16. melvin-bot commented on Nov 19, 2025

    @melvin-bot

    Reviewing label has been removed, please complete the "BugZero Checklist".

  17. melvin-bot commented on Nov 19, 2025

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.2.60-2 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

    If no regressions arise, payment will be issued on 2025-11-26. 🎊

    For reference, here are some details about the assignees on this issue:

    • @brunovjk requires payment through NewDot Manual Requests
  18. melvin-bot commented on Nov 19, 2025

    @melvin-bot

    @brunovjk @strepanier03 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.EngineeringExternalAdded to denote the issue can be worked on by a contributorWeeklyKSv2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions