I have a case where i’m getting formatted text with <a href ...>, <em>, <br>, ", etc tags, and i’m showing it in a Text View. How can i apply these formats? If i can’t, whats the most generic way to remove all these tags?
Thanks, Mustafa
No, i just want to show the formatted text in non editable NSTextView. or maybe UIWebView, will it automatically handle tags like <em>?
If you want editable text you will have to parse it using a library like Tidy to get just an NSString and then pass that to UITextView’s
-setText:methodIf you need to display HTML, use UIWebView.
If you want to edit HTML as formatted text you will have to roll your own or use private API’s.