[PR #478] [MERGED] fix: decode html entities in playlist description #1708

Closed
opened 2026-03-14 15:28:50 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/aome510/spotify-player/pull/478
Author: @juliamertz
Created: 6/27/2024
Status: Merged
Merged: 6/27/2024
Merged by: @aome510

Base: masterHead: fix-decode-playlist-desc


📝 Commits (1)

  • af55595 fix: decode html entities in playlist description

📊 Changes

3 files changed (+19 additions, -2 deletions)

View changed files

📝 Cargo.lock (+16 -0)
📝 spotify_player/Cargo.toml (+1 -0)
📝 spotify_player/src/state/model.rs (+2 -2)

📄 Description

Noticed in one of my playlists the apostrophe in the description was displayed as '. initially i tried to fix this without using a library, but it doesn't seem feasible to roll my own decoder for this. I've added the library html-escape which seems like the best out of a few choices.

I'm not quite sure if we still need the regex to remove html tags as i haven't seen any examples of these being sent down.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/aome510/spotify-player/pull/478 **Author:** [@juliamertz](https://github.com/juliamertz) **Created:** 6/27/2024 **Status:** ✅ Merged **Merged:** 6/27/2024 **Merged by:** [@aome510](https://github.com/aome510) **Base:** `master` ← **Head:** `fix-decode-playlist-desc` --- ### 📝 Commits (1) - [`af55595`](https://github.com/aome510/spotify-player/commit/af55595b07cf8b509037a7e2692510765e691034) fix: decode html entities in playlist description ### 📊 Changes **3 files changed** (+19 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `Cargo.lock` (+16 -0) 📝 `spotify_player/Cargo.toml` (+1 -0) 📝 `spotify_player/src/state/model.rs` (+2 -2) </details> ### 📄 Description Noticed in one of my playlists the apostrophe in the description was displayed as `&#x27;`. initially i tried to fix this without using a library, but it doesn't seem feasible to roll my own decoder for this. I've added the library `html-escape` which seems like the best out of a few choices. I'm not quite sure if we still need the regex to remove html tags as i haven't seen any examples of these being sent down. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-14 15:28:50 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-player#1708
No description provided.