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

  • SEARCH
  • Home
  • 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 7968847
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T07:08:33+00:00 2026-06-04T07:08:33+00:00

When I parse a description of a news from the rss, there is a

  • 0

When I parse a description of a news from the rss, there is a link in this format:

Little invention of the 4 april 2012 (index.php?option=com_content task=view id=157 Itemid=100).

I want to present a hyperlink with link-text:

Little invention of the 4 april 2012

and link-adress:

index.php?option=com_content task=view id=157 Itemid=100

How do I do it?

  • 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-04T07:08:33+00:00Added an answer on June 4, 2026 at 7:08 am

    You can obtain needed strings like this:

    NSString *string = [NSString stringWithString:@"Little invention of the 4 april 2012 (index.php?option=com_content task=view id=157 Itemid=100)"];
    int linkStartIndex = [string rangeOfString:@"(" options:NSBackwardsSearch].location;
    NSString *name = [string substringToIndex:linkStartIndex];
    NSString *adress = [string substringWithRange:NSMakeRange(linkStartIndex+1, string.length-linkStartIndex-2)];
    NSLog(@"\nname = [%@], \naddress = [%@]", name, adress);
    

    Than if you use UIWebView to present it, add to the html of your webView this string:

    NSString *linkTag = [NSString stringWithFormat:@"<a href=\"%@\">%@</a>", adress, name];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

how can I parse XML like this <rss version=0.92> <channel> <title>MyTitle</title> <link>http://myurl.com</link> <description>MyDescription</description> <lastBuildDate>SomeDate</lastBuildDate>
from a PHP script I'm downloading a RSS feed like: $fp = fopen('http://news.google.es/news?cf=all&ned=es_ve&hl=es&output=rss','r') or
i try to parse within my iPhone SDK 4 http://de.news.search.yahoo.com/news/rss?p=iphone&ei=UTF-8&fl=0&x=wrt there are some german
Im getting Rss from a site. in the description tag there is an image
I parse some values from an xml file. There is a @25-12-2010'T'23:40:00 string with
How can i easily parse a document which has this structure description some line
I need to Parse Values out of a Text that looks like this: Description.
I understand what tapply() does in R. However, I cannot parse this description of
I need to parse a string which contains custom tags like [link][description][link-url][/link] and I
I want to parse information in: http://feeds.informationweek.com/infoweek/news http://feeds.news.com.au/public/rss/2.0/fs_breaking_news_13.xml http://rss.cnn.com/rss/cnn_topstories.rss using php. And save the

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.