lotusprey / otraku

An unofficial AniList client for Android and iOS
GNU General Public License v3.0
347 stars 12 forks source link

HTML is not parsed in the short description #108

Closed agatemosu closed 9 months ago

agatemosu commented 11 months ago

Example: https://anilist.co/anime/19111

I think that the correct word is "parsed" but if it's not, I mean that HTML tags can be viewed

nstrelow commented 10 months ago

The app already parses this correctly when clicking on the description to make it pop out.

Probably reusing the same code for this part might be not to difficult.

@lotusprey Would this be something I could look into?

lotusprey commented 10 months ago

Media descriptions (unfortunately) use a bit of markdown, so I started requesting them as HTML from the API. When the description gets expanded, I use the flutter_widget_from_html_core package to present it correctly. I don't resort to that in the description preview, because I need to only show a segment of the description and using the package functionality there didn't seem like an optimal solution. I will probably end up using it, we will see.

lotusprey commented 10 months ago

Fixed in #113. I will close the issue, when the next update is released.

lotusprey commented 9 months ago

I closed is accidentally earlier, but now this is completed in version 1.2.7, for which there's currently a pre-release, but the official release will be out soon.