0

I'm getting an string from json response. In the string there are HTML tags,

<ul class='video-list-container'><li><a href='?page_id=6602&playid=6'>مكتبة الفيديو</a></li><li><a href='?page_id=6602&playid=10'>الزكاة</a></li><li><a href='?page_id=6602&playid=11'>الصلاة</a></li></ul>\n

Now all I want to do is to do is, get the arabic string with the href link and display in the UITableviewcell. And when selected row should move to next viewcontroller.

How can do this. I'm struck in parsing the string. Can anyone help me. Thanks In advance.

3

2 Answers 2

1

I think this tutorials might help you ,

AFNetworking is smart enough to load and process structured data over the network, as well as plain old HTTP requests. In particular, it supports JSON, XML and Property Lists (plists).

you can follow the tutorial given below for more clarification

http://www.raywenderlich.com/59255/afnetworking-2-0-tutorial

Sign up to request clarification or add additional context in comments.

Comments

0

You should try using the library "hpple" which is a wrapper around "libxml2". You can find hpple here.

Hpple allows you to parse HTML in Obj-C using XPath expressions. With XPath selectors you will be able to select what content you want to extract out of your HTML. You can read and learn more about XPath here.

Hope it helps. :)

Cheers!

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.