Setting HTML text for UILabel in IB

196 Views Asked by At

Getting HTML text from back-end, now i am manually removing and formatting the tags and adding bullet points for <li> tags.

if any other <p> tag or <br> tag is coming means then i am removing it. Checked RTLabel, Unable to use this in Interface builder.

Now tried TTTAttributedLabel, i am able to use this in IB but it is not recognizing the HTML tags.

is there any other lightweight library available?

1

There are 1 best solutions below

3
Avinay Kumar On

You can use RTLabel to display HTML text instead of UILabel. Please check below link for more details :-

https://github.com/honcheng/RTLabel