Part of the App I'm building is a chat screen. I'm displaying chat messages as UITableViewCells that consist of simple UILables (holding the text) and a surrounding UIView (to display text within a little speech bubble). All pretty straight forward.
Chat message text I'm getting from the backend is html and can also include links. I would basically like to achieve 2 things:
- html formatting -
<ul>, <li>
, etc. - I would like to make included hyperlinks clickable
I've found some solutions that either achieve one or the other - mostly via NSAttributedStrings and NSMutableAttributedStrings. As the problem doesn't seem to be very exotic, I thought I'd ask if anyone out there has found or established a way to get both done in one go - i.e. a function that takes a string and spits out an attribted string with clickable links and html attritubes.