You are here: Documentation » API Reference » SimplePie » remove_div()
Table of Contents
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/06 03:56 (external edit)