SimplePie 1.3.1 is now available. Upgrade now!

SimplePie Documentation.  Learn how to use this thing.  It's way better than going to school.

You are here: Documentation » API Reference » SimplePie » remove_div()

remove_div()

Description

class SimplePie {
	remove_div ( [bool $enable = true] )
}

Remove the surrounding <div> from XHTML content in Atom feeds. This doesn't do anything for RSS feeds.

Availability

  • Available since SimplePie Beta 2.

Parameters

enable

Enable/disable stripping of the surrounding <div>.

Examples

Don't strip the <div>

$feed = new SimplePie();
$feed->set_feed_url('http://simplepie.org/blog/feed/');
$feed->remove_div(false);
$feed->init();
$feed->handle_content_type();
echo $feed->get_title();

See Also


reference/simplepie/remove_div.txt · Last modified: 2011/03/05 19:56 (external edit)