Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9211901
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:24:07+00:00 2026-06-18T01:24:07+00:00

I m working on a chat application and i m getting a HTML response

  • 0

I m working on a chat application and i m getting a HTML response inside JSON response from server as chat History. Below is the response.

{ "status": "valid","chats": [{ "ces": "d5c15cf47d8e8684cfbebbc606f7d901", "fav":"0", "text": "<div class='ca'><i>sometext</i></div><><div class='ca'><b>prasad</b> has joined the chat.</div><><cid_1358766005><div class='co'><span class='notranslate'><b>prasad<timestamp_1358766041_co>:</b></span> hi</div></cid_1358766005><><div class='cl'><disconnected><d6>The party has left or disconnected.  Chat session has ended.</div><>" } ] } 

I want to separate them and Show in a table view.

I just tried to strip the HTML tag with the following category :

-(NSString *) stringByStrippingHTML {
    NSRange r;
    NSString *s = [self copy] ;
    while ((r = [s rangeOfString:@"<[^>]+>" options:NSRegularExpressionSearch]).location != NSNotFound)
        s = [s stringByReplacingCharactersInRange:r withString:@""];
    return s;
}

But i m not getting all the data. I m never getting the timestamp. Please any one guide me How to get all the data.Thanks for your time.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T01:24:08+00:00Added an answer on June 18, 2026 at 1:24 am

    You can use NSXMLParser. It’s Apple’s class for parsing XML documents.

    Or else there are lot of open source libraries like TinyXML,Seismic XML etc for parsing XML documents.

    Hope it Helps !!!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working in android chat application. I used SmartFox server. I am using
I have written a chat application which is working as desired apart from 1
I am having trouble getting my chat application working correctly. I have 2 textbox's,
I am getting out of Memory error. I am working on live chat application.
I am working on a mini-project which consists of doing a client-server chat application.
I'm working on chat application. The underlying server uses Node.js and the client/server communication
Currently im working on a facilitator application, competitor application and a chat server. Im
Im working on a Client/server chat application which allows user to send files (images
i am working on a chat application. I am able to send and receive
I am working on android chat application. I am facing a problem in send

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.