Description
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:
Reproducible in staging?:
Reproducible in production?:
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?:
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by:
Slack conversation (hyperlinked to channel name):
Action Performed:
Break down in numbered steps
- Use account with tableReportView beta on (enable it locally if you use dev env)
- Add merchant or description with markdown or html tag in the expense
- Check the expense preview
- notice the markdown is written as plain text

Expected Result:
Describe what you think should've happened
In the preview and in the Reports Transaction rows, make sure that the merchant (or description if the merchant is missing) has any markdown or html stripeed and we just show the plain text
Actual Result:
Describe what actually happened
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Select the officially supported platforms where the issue was reproduced:
- Android: Standalone
- Android: HybridApp
- Android: mWeb Chrome
- iOS: Standalone
- iOS: HybridApp
- iOS: mWeb Safari
- Windows: Chrome
- MacOS: Chrome / Safari
- MacOS: Desktop
Platforms Tested:
On which of our officially supported platforms was this issue tested:- Android: Standalone
- Android: HybridApp
- Android: mWeb Chrome
- iOS: Standalone
- iOS: HybridApp
- iOS: mWeb Safari
- Windows: Chrome
- MacOS: Chrome / Safari
- MacOS: Desktop
Screenshots/Videos
Add any screenshot/video evidence
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~021909241958387499148
- Upwork Job ID: 1909241958387499148
- Last Price Increase: 2025-04-07
Issue Owner
Current Issue Owner: @Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
melvin-bot commentedon Apr 7, 2025
Triggered auto assignment to @isabelastisser (
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.[-][Better Expense Report View] Strip the new expense preview of the markdown and html[/-][+][$250] [Better Expense Report View] Strip the new expense preview of the markdown and html[/+]melvin-bot commentedon Apr 7, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021909241958387499148
melvin-bot commentedon Apr 7, 2025
Current assignee @DylanDylann is eligible for the External assigner, not assigning anyone new.
FitseTLT commentedon Apr 7, 2025
🚨 Edited by proposal-police: This proposal was edited at 2025-04-07 13:56:54 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
[Better Expense Report View] Strip the new expense preview of the markdown and html
What is the root cause of that problem?
We display the raw description here
App/src/components/ReportActionItem/TransactionPreview/TransactionPreviewContent.tsx
Line 140 in bbcf20a
What changes do you think we should make in order to solve the problem?
We should parse it to text just like we do for search here
But for merchant we don't support markdown so markdowns don't get changed to html by the BE so we don't need any change but if we still want to strip the markdown from merchant we can parse it to HTML via Parser.replace and then parse markdown back to text via htmlToText.
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
N / A
What alternative solutions did you explore? (Optional)
[-][$250] [Better Expense Report View] Strip the new expense preview of the markdown and html[/-][+][$125] [Better Expense Report View] Strip the new expense preview of the markdown and html[/+]8 remaining items
[-][HOLD https://github.com/Expensify/App/issues/58553] [$125] [Better Expense Report View] Strip the new expense preview of the markdown and html[/-][+][HOLD https://github.com/Expensify/App/issues/58553]trip the new expense preview of the markdown and html[/+][-][HOLD https://github.com/Expensify/App/issues/58553]trip the new expense preview of the markdown and html[/-][+][HOLD https://github.com/Expensify/App/issues/58553] Strip the new expense preview of the markdown and html[/+]isabelastisser commentedon May 19, 2025
Still on hold!
isabelastisser commentedon Jun 20, 2025
@mountiny @trjExpensify is this still on hold? I looked at #58553, and it was closed/fixed(?) last month.
trjExpensify commentedon Jun 23, 2025
Nope, you can retest.
[-][HOLD https://github.com/Expensify/App/issues/58553] Strip the new expense preview of the markdown and html[/-][+]Strip the new expense preview of the markdown and html[/+]mountiny commentedon Jun 23, 2025
Asked here
IuliiaHerets commentedon Jun 24, 2025
@mountiny Issue is not reproducible on Windows 11/ Chrome in v9.1.70-6
bandicam.2025-06-24.16-38-49-684.mp4
mountiny commentedon Jun 25, 2025
Ok thank you!