amit rajput
amit rajput

Reputation: 18

Convert this Html text in simple text in iphone

<strong>Occupant Safety</strong>

All ILX models come standard with dual front, front side and full-length side curtain airbags in addition to traction and stability control systems and electronic brakeforce distribution.

<strong>Key competitors</strong>

As the new entry-level offering from Acura, the ILX will compete with the Buick Verano and the Audi A3. Buyers can also consider cross-shopping it against Acura's own TSX, which is a size larger yet only marginally more expensive.

Please say how to convert this html tags in simple text in iphone

Upvotes: 0

Views: 2004

Answers (2)

Myaaoonn
Myaaoonn

Reputation: 997

try this.. https://github.com/mwaterfall/MWFeedParser

Import the Category folder.

Define only..

import "NSString+HTML.h"

And write like this...

simpletxt.text = [YourHTMLString stringByConvertingHTMLToPlainText];

Upvotes: 2

vishy
vishy

Reputation: 3231

You need to escape the html tags in the string, you have some NSString categories to get it worked, follow this

Convert formatted HTML text string to NSString parts

In the accepted answer you can find your solution, how to escape html tags in the string.

Upvotes: 0

Related Questions