amethyst icon indicating copy to clipboard operation
amethyst copied to clipboard

[BUG] URL previews mishandle HTML entities

Open strout opened this issue 10 months ago • 1 comments

Describe the bug URL previews (image/title/description boxes that replace some links) show HTML entities instead of the characters they represent.

To Reproduce Steps to reproduce the behavior:

  1. View a note with a preview, such as nostr:nevent1qqsf4ysx2ha8uux4hqylt2l2lgg0lkhq8r9g6zqfswug2f7r4yze26spz3mhxue69uhhyetvv9ujuerpd46hxtnfdupzpqt3frpkjq24gqd5j3vqsu0mq4j2t740h9z5syl0990jwp4ujv6eqvzqqqqqqydhnpmu
  2. See the HTML entities visible instead of characters like quotation marks.

Expected behavior HTML entities should be replaced by the characters they represent.

Video and Screenshots Screenshot_20240419_211603_Amethyst

App version: 0.86.5 from F-Droid

strout avatar Apr 20 '24 02:04 strout

I have provided a manual solution to decode most common html entities. It doesn't cover all html entities.

Please try again and feel free to close this issue if it is sufficent.

thank you for reporting it!

davotoula avatar Aug 21 '24 15:08 davotoula