You are here: Documentation » API Reference » SimplePie_Item » get_content()
Table of Contents
get_content()
Description
class SimplePie_Item { get_content () }
Returns the content for the item. Prefers full content over summaries, but will return a summary if full content does not exist. To prefer summaries instead, use get_description().
Availability
- Available since SimplePie 1.0.
Examples
Display the description
$feed = new SimplePie(); $feed->set_feed_url('http://simplepie.org/blog/feed/'); $feed->init(); $feed->handle_content_type(); foreach ($feed->get_items() as $item) { echo $item->get_content(); }
See Also
reference/simplepie_item/get_content.txt · Last modified: 2011/03/06 03:56 (external edit)