[$175] iOS Safari - Chat - Bold and italic formatting is lost when pasting rich text
I maintainer di solito rispondono entro 1 giorno
@Uzaifm127 ci sta già lavorando.
Dal 5/11/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Reproducible in staging?: Yes
Issue reported by: @Uzaifm127
Source: Follow-up from https://github.com/Expensify/App/issues/85907#issuecomment-6451147442 on Chat - Emojis pasted from Slack render as images
The Safari clipboard contains formatting information, but bold and italic text become plain text after pasting. This is separate from recognizing emoji images.
Action Performed:
- In Slack , enter a message containing an emoji and these three phrases:
Bold,,Italic Bold,, andItalic. - Use Slack's formatting controls to make
Bold,bold,Italic Bold,both bold and italic, andItalicitalic. Send the message and confirm that Slack displays those styles. - Select and copy the whole rendered message.
- On iOS safari, open a chat.
- Clear the composer and paste the copied message.
Expected Result:
The pasted phrases retain the same bold and italic formatting shown in Slack.
Actual Result:
The words are pasted, but their bold and italic formatting is lost. The bold, bold-and-italic, and italic phrases appear as plain text.
Workaround:
Reapply the bold and italic formatting manually after pasting.
Platforms:
Platforms where the issue reproduced (other platforms not tested):
- Android: App
- Android: mWeb Chrome
- iOS: App
- iOS: mWeb Safari
- iOS: mWeb Chrome
- Windows: Chrome
- MacOS: Chrome / Safari
Screenshots/Videos
https://github.com/user-attachments/assets/9348903e-7fe4-48a5-b74e-8c095ddeb5bd
Root cause
- Safari puts the bold and italic formatting on
<span>elements. For example,Bold,has a bold style, andItalic Bold,has both bold and italic styles. The formatting is in the copied HTML, but not in<b>,<strong>,<i>, or<em>tags. handlePastedHTML()sends the HTML toParser.htmlToMarkdown(): https://github.com/Expensify/App/blob/5bd95161056013f594b1c6f01e84f046433e7f6e/src/hooks/useHtmlPaste/index.ts#L186. The parser's bold and italic rules look for those tags, so they do not recognize the formatting on Safari's<span>elements.- The parser removes the remaining HTML tags, leaving only the words. That is why
Bold,,Italic Bold,andItalicappear in the Composer without their copied formatting.
Issue Owner
Current Issue Owner: @truph01Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~022118114383622871121
- Upwork Job ID: 2118114383622871121
- Last Price Increase: 2026-11-04
- Lingua principale
- TypeScript
- Stelle
- 5k
- Fork
- 4k
- Merge medio
- 3g 2h
- PR unite (30g)
- 617
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Expensify/App
-
Monthly Not a priority
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
Expensify/App#106225 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Monthly Not a priority
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Expensify/App#106221 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[Exploratory] Expense - 2 selected drop-down is shown twice when selecting hold from more option.ApertaMonthly Not a priority
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
Expensify/App#106080 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Monthly Not a priority
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
Expensify/App#106057 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Reviewing Weekly
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
Expensify/App#105383 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Expensify/App
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
earendil-works/pi-claude-code#36 ·
I maintainer di solito rispondono entro 6 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno
-
Resources: New work of jabodetabekForse già presa @rmt-svc l’ha presa oggi. Apertaresources
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
railmapgen/rmp-gallery#4167 ·
I maintainer di solito rispondono entro 2 giorni
-
documentation p1
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
microsoft/monaco-editor#5577 ·
I maintainer di solito rispondono entro 1 giorno