Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Html string set into UILabel

I am getting NSString with contain some html tag.
Now I want to set this string into UILabel with working of this html tag

like image 817
Hiren Avatar asked Apr 07 '11 11:04

Hiren


2 Answers

To convert HTML to plain text Download File

and use

stringByConvertingHTMLToPlainText function on your string.

like image 98
saadnib Avatar answered Sep 18 '22 00:09

saadnib


You can use DTCoreText (previously known as NSAttributedString Additions for HTML).

like image 38
malinois Avatar answered Sep 20 '22 00:09

malinois