Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HOLD for payment 2021-12-06] IOU - Double quote displays as HTML code in IOU request #6159

Closed
kavimuru opened this issue Nov 1, 2021 · 11 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Engineering External Added to denote the issue can be worked on by a contributor Improvement Item broken or needs improvement. Weekly KSv2

Comments

@kavimuru
Copy link

kavimuru commented Nov 1, 2021

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


Action Performed:

  1. Open https://staging.new.expensify.com/
  2. Login with existing account
  3. Tap + button
  4. Select Split Bills
  5. Select contact with double-quote in the name
  6. Tap Request

Expected Result:

Contact name should display properly on IOU screen

Actual Result:

Double quote displays as HTML code in IOU request

Workaround:

Visual

Platform:

Where is this issue occurring?

  • Web
  • Mobile Web

Version Number: 1.1.12-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:

Expensify/Expensify Issue URL:

Issue reported by: Applause
Slack conversation:

View all open jobs on GitHub

@MelvinBot
Copy link

Triggered auto assignment to @pecanoro (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@pecanoro pecanoro added Improvement Item broken or needs improvement. External Added to denote the issue can be worked on by a contributor labels Nov 2, 2021
@MelvinBot
Copy link

Triggered auto assignment to @bfitzexpensify (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

@pecanoro pecanoro removed their assignment Nov 2, 2021
@parasharrajat
Copy link
Member

parasharrajat commented Nov 2, 2021

Proposal

There are two ways we can do this.

  1. Either backend unescape the string before sending it to frontend. ( I am not sure if that is safe to do).
  2. We un-escape it before showing it on UI. This can be done in

like

 {Str.htmlDecode(fragment.text)}

@bfitzexpensify
Copy link
Contributor

Upwork job

@botify botify removed the Daily KSv2 label Nov 2, 2021
@MelvinBot MelvinBot added Weekly KSv2 Help Wanted Apply this label when an issue is open to proposals by contributors labels Nov 2, 2021
@MelvinBot
Copy link

Triggered auto assignment to @puneetlath (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@MuhammadNasirr
Copy link

MuhammadNasirr commented Nov 2, 2021

Proposal
here is how we can do this.

we can use the parseInt method the remove Double Quotes

parseInt((fragment.text.replace('"','')))

@muluwork-shegaw
Copy link

it would be a better to use regex to replace the quote in the string fragment.text.replace(/['"]+/g, '')

@puneetlath
Copy link
Contributor

@bfitzexpensify I like @parasharrajat's option 2.

@puneetlath
Copy link
Contributor

This has been merged. @parasharrajat thanks for your patience!

@bfitzexpensify please make sure to add the bonus for the company offsite hold when paying this out.

@bfitzexpensify
Copy link
Contributor

Contrct ended and bonus added - thanks @parasharrajat.

@MelvinBot MelvinBot removed the Overdue label Nov 29, 2021
@botify botify added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Nov 29, 2021
@botify botify changed the title IOU - Double quote displays as HTML code in IOU request [HOLD for payment 2021-12-06] IOU - Double quote displays as HTML code in IOU request Nov 29, 2021
@botify
Copy link

botify commented Nov 29, 2021

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.16-10 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 2021-12-06. 🎊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Engineering External Added to denote the issue can be worked on by a contributor Improvement Item broken or needs improvement. Weekly KSv2
Projects
None yet
Development

No branches or pull requests

10 participants