signalapp / signalapp/Signal-iOS

apostrophes (`'`) are displayed as `'` in link previews

Open
#6,097 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Acknowledged
Dominant language
Swift
Stars
12.2k
Forks
3.5k
PR merge metrics
No merged PRs in 30d

Description

Bug description

If the meta tag associated to a link shared in a message contains the character ' it is displayed as ' instead in the link preview. Has been tested with other messengers and they display the character correctly.

The bug is also present on Signal Desktop so it's likely a server side issue.

Steps to reproduce
  • share a link who's meta tag contains the character ' (apostrophe).

Actual result: It displays ' instead

Expected result: It displays the actual character '

Device info

Device: iPhone 6s / iPhone XR / Ubuntu 22.04
iOS version: 15.8.2 / 18.3.1

Signal version: 7.73

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with a shared link whose metadata contains an apostrophe, then inspect the link-preview handling in Signal-iOS to determine whether the escaping occurs on the client or server. Done means the preview displays the apostrophe itself rather than \u0026#039; on the reported devices.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.