aome510 / spotify-player

A Spotify player in the terminal with full feature parity
MIT License
2.95k stars 132 forks source link

fix: decode html entities in playlist description #478

Closed juliamertz closed 1 week ago

juliamertz commented 1 week ago

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.