Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Links in description rendered as raw html tags #43

Open
anatosun opened this issue Aug 15, 2022 · 2 comments
Open

Links in description rendered as raw html tags #43

anatosun opened this issue Aug 15, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@anatosun
Copy link
Contributor

When there is a link in a Spotify playlist description, the links are rendered as raw html tags (i.e., <a href="link">text<a/>). I don't believe that Plex support links in the descriptions, so one workaround would be to strip the text from the tags and render it as pure text.

@anatosun anatosun added the bug Something isn't working label Aug 15, 2022
@anatosun
Copy link
Contributor Author

A simple regular expression can strip the html tags from the description.

re.sub("""(<a href="(.*?)">)|(</a>)""", "", description)

@rnagabhyrava
Copy link
Owner

Thanks. I will look into this and other possible cases and update on next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants