Skip to content

[Hold for payment 2021-09-07] Copy and pasting text into a chat gives you html decoded strings  #4759

Closed

Description

@parasharrajat

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 newDot on the web.
  2. Copy some text that contains whitespaces from the Mac's Note.app or any other application.
  3. Paste that into the composer.

Expected Result:

Special Html entities should be shown correctly.

Actual Result:

You can see a lot of them in HTML form.
e.g. service.  ,   We’ve, haven’t .

Workaround:

None.

Platform:

Where is this issue occurring?

  • Web
  • iOS
  • Android
  • Desktop App
  • Mobile Web

Version Number: latest

Notes/Photos/Videos:
https://expensify.slack.com/archives/C01GTK53T8Q/p1629395261042000?thread_ts=1627358860.323100&cid=C01GTK53T8Q

View all open jobs on GitHub

Activity

  1. added
    AutoAssignerTriage
    Daily
    on Aug 19, 2021
  2. MelvinBot commented on Aug 19, 2021

    @MelvinBot
    Contributor

    Triggered auto assignment to @laurenreidexpensify (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

  3. removed
    AutoAssignerTriage
    on Aug 19, 2021
  4. parasharrajat commented on Aug 19, 2021

    @parasharrajat
    MemberAuthor

    Explanation.

    • A lot of apps use HTML entities instead of ASCII characters which when pasted to composer are not decoded.

    Proposal

    1. There is a good library that does this for us https://www.npmjs.com/package/html-entities.
    2. But this contains a lot of code which we don't really need.
    3. So my idea is to extract the List of chars from https://github.com/mdevils/html-entities/blob/master/src/named-references.ts.
    4. Then using the regexp match we can convert them easily without using the library.
    5. This function will be an extended version of underscore the _.unscape https://github.com/jashkenas/underscore/blob/master/modules/_createEscaper.js
  5. mallenexpensify commented on Aug 19, 2021

    @mallenexpensify
    Contributor

    @parasharrajat already fixed some examples in this GH #4169
    Let's make sure we address any/all relevant ones so we don't end up with a ton of small issues/fixes (which eat away at valuable resources)

  6. removed their assignment
    on Aug 20, 2021
  7. added
    AutoAssignerTriage
    on Aug 20, 2021
  8. MelvinBot commented on Aug 20, 2021

    @MelvinBot
    Contributor

    Triggered auto assignment to @kadiealexander (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

  9. removed
    AutoAssignerTriage
    on Aug 20, 2021
  10. laurenreidexpensify commented on Aug 20, 2021

    @laurenreidexpensify
    Contributor

    I'm OOO next week so reassigning this - looks like @mallenexpensify might have a steer on whether we need to move this one to engineering

  11. removed their assignment
    on Aug 22, 2021
  12. kadiealexander commented on Aug 22, 2021

    @kadiealexander
    Contributor

    Seems like a reasonable formatting change! Sending to eng for another set of eyes.

  13. 11 remaining items

  14. added
    Help Wanted
    on Aug 23, 2021
  15. arielgreen commented on Aug 23, 2021

    @arielgreen
    Contributor

    Posted job and invited @parasharrajat.

  16. removed
    Help Wanted
    on Aug 23, 2021
  17. arielgreen commented on Aug 26, 2021

    @arielgreen
    Contributor

    Whoops! Forgot to finalize the hire in Upwork before, sorry about that. @parasharrajat! Just hired you there as well.

  18. botify commented on Aug 30, 2021

    @botify

    🚀 Deployed to staging by @Beamanator in version: 1.0.88-3 🚀

    platform result
    🤖 android 🤖 cancelled 🔪
    🖥 desktop 🖥 cancelled 🔪
    🍎 iOS 🍎 cancelled 🔪
    🕸 web 🕸 success ✅
  19. botify commented on Sep 1, 2021

    @botify

    🚀 Deployed to production by @roryabraham in version: 1.0.90-2 🚀

    platform result
    🤖 android 🤖 success ✅
    🖥 desktop 🖥 success ✅
    🍎 iOS 🍎 failure ❌
    🕸 web 🕸 success ✅
  20. Julesssss commented on Sep 2, 2021

    @Julesssss
    Contributor

    Sorry, we missed the payment notification somehow, my fault.

  21. changed the title [-]Copy and pasting text into a chat gives you html decoded strings [/-] [+][Pay on 09/09] Copy and pasting text into a chat gives you html decoded strings [/+] on Sep 2, 2021
  22. changed the title [-][Pay on 09/09] Copy and pasting text into a chat gives you html decoded strings [/-] [+][Hold for payment 2021-09-07] Copy and pasting text into a chat gives you html decoded strings [/+] on Sep 6, 2021
  23. Julesssss commented on Sep 7, 2021

    @Julesssss
    Contributor

    @arielgreen this can be paid today 🎉

  24. arielgreen commented on Sep 7, 2021

    @arielgreen
    Contributor

    Paid + bonus for reporting, thanks for your work here @parasharrajat!

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

Metadata

Metadata

Labels

EngineeringExternalWeekly

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions