Hello, I have php code which takes an rss feed and outputs it on a page of my website. For each item it shows the link, title and description.
My problem is the description element contains a lot of information (some links and other stuff) and I want to extract one of the links out of this information, so that on my webpage I am shown the link, title and the link I want out of the description, for every item. How would I achieve this? If no-one knows can anyone point me to books which might know.
Here is the description tag:
- <description>submitted by <a href="http://www.examplesite.com/user/hoopy001"> hoopy001 </a> <br/> <a href="http://www.telegraph.co.uk/earth/wildlife/6187320/Snake-with-foot-found-in-China.html">[link]</a> <a href="http://www.examplesite.com/steep/meeic/comments/9feftggfy/snake_with_foot_found_in_china_telegraph/">[comment]</a></description>
In this example I want the link telegraph.co.uk with the word [link] after it, which i bolded out.
Any ideas would be gratefully received.
Thank you