When a mobile app is deployed, any necessary modifications require a review request, and deployment can only proceed after the review is complete. To avoid multiple deployments due to frequently changing text, the server can deliver this text instead.
If you also want to include the style of the text delivered from the server, using HTML text can be convenient.
A simple implementation approach is to convert the HTML text to data, decode it, and return it in the NSAttributedString format to display in a UILabel or UITextView.
However, when using
and tags to display an unordered list, there is an issue where bullet points are created on lines with
tags. Since Apple does not provide principles on how decoding works by default, a workaround is to use a library called Atributika to resolve this issue. By using Atributika to convert tags into bullet point characters and then applying styles, bullet points can be created as desired.
There isnโt much written about the Atributika library, so I created a post about it on my Tistory blog.