and how about another HTML tag such as <img>, <div> etc.
Muhammad Nur Hidayat
1

You can add <img> tags as well. Here is one example I have created now:

descLbl.attributedText = “<img width=\”100\” height=\”50\” src=\”http://theappspace.com/wp-content/uploads/2017/06/swift-convert-html-using-nsattributedstring-featured-700x350.jpeg\">".convertHtml()

And here is the output:

HTML <img> tag inside UILabel
Show your support

Clapping shows how much you appreciated Dejan Atanasov’s story.