App: [$500] Expensimark: Expose not-formatted href value in links HTML elements

Required by https://github.com/Expensify/App/issues/27977.

Problem Currently, ExpensiMark automatically sanitises links and modifies values typed by user. However when typing we need to have access for unmodified value in order to prevent unwanted changes inside input.

Solution Expose both unmodified value and the link variant (labeled or not) as separate attributes inside parsed links elements

Example:

Input: www.example.com
Desired output: <a href="https://www.example.com" data-raw-href="www.example.com" data-link-variant="auto" target="_blank" rel="noreferrer noopener">www.example.com</a>
Input: [www.example.com](www.example.com)
Desired output: <a href="https://www.example.com" data-raw-href="www.example.com" data-link-variant="labeled" target="_blank" rel="noreferrer noopener">www.example.com</a>
Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~018ec6580f23b26fdb
  • Upwork Job ID: 1737161604818329600
  • Last Price Increase: 2023-12-19
  • Automatic offers:
    • situchan | Contributor | 28115362

About this issue

  • Original URL
  • State: closed
  • Created 7 months ago
  • Comments: 24 (10 by maintainers)

Most upvoted comments

PR is in review