Skip to content

Strip the new expense preview of the markdown and html #59733

Closed

Description

@mountiny

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

  1. Use account with tableReportView beta on (enable it locally if you use dev env)
  2. Add merchant or description with markdown or html tag in the expense
  3. Check the expense preview
  4. notice the markdown is written as plain text
    Image

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

View all open jobs on GitHub

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 OwnerCurrent Issue Owner: @

Activity

  1. added
    Bug
    Daily
    on Apr 7, 2025
  2. moved this to Second Cohort - HIGH in [#whatsnext] #migrateon Apr 7, 2025
  3. added
    External
    on Apr 7, 2025
  4. melvin-bot commented on Apr 7, 2025

    @melvin-bot

    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.

  5. changed the title [-][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[/+] on Apr 7, 2025
  6. melvin-bot commented on Apr 7, 2025

    @melvin-bot
  7. added
    Help Wanted
    on Apr 7, 2025
  8. melvin-bot commented on Apr 7, 2025

    @melvin-bot

    Current assignee @DylanDylann is eligible for the External assigner, not assigning anyone new.

  9. FitseTLT commented on Apr 7, 2025

    @FitseTLT
    Contributor

    🚨 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

    const description = truncate(StringUtils.lineBreaksToSpaces(requestComment), {length: CONST.REQUEST_PREVIEW.MAX_LENGTH});

    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

        const description = truncate(StringUtils.lineBreaksToSpaces(Parser.htmlToText(requestComment)), {length: CONST.REQUEST_PREVIEW.MAX_LENGTH});
    
    

    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)

  10. changed the title [-][$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[/+] on Apr 7, 2025
  11. 8 remaining items

  12. changed the title [-][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[/+] on Apr 17, 2025
  13. changed the title [-][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[/+] on Apr 17, 2025
  14. isabelastisser commented on May 19, 2025

    @isabelastisser
    Contributor

    Still on hold!

  15. isabelastisser commented on Jun 20, 2025

    @isabelastisser
    Contributor

    @mountiny @trjExpensify is this still on hold? I looked at #58553, and it was closed/fixed(?) last month.

  16. trjExpensify commented on Jun 23, 2025

    @trjExpensify
    Contributor

    Nope, you can retest.

  17. changed the title [-][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[/+] on Jun 23, 2025
  18. mountiny commented on Jun 23, 2025

    @mountiny
    ContributorAuthor

    Asked here

  19. IuliiaHerets commented on Jun 24, 2025

    @IuliiaHerets

    @mountiny Issue is not reproducible on Windows 11/ Chrome in v9.1.70-6

    bandicam.2025-06-24.16-38-49-684.mp4
  20. mountiny commented on Jun 25, 2025

    @mountiny
    ContributorAuthor

    Ok thank you!

  21. moved this from Second Cohort - HIGH to Done in [#whatsnext] #migrateon Jun 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugExternalHelp WantedMonthly

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions