You are here: Documentation » API Reference » SimplePie » strip_comments()
Table of Contents
strip_comments()
Description
class SimplePie { strip_comments ( [ $strip = false] ) }
Set whether to strip out HTML comments from an entry's content.
Availability
- Available since SimplePie 1.0.
Parameters
strip
Enable/disable the stripping of HTML comments.
Examples
Enable comment stripping
$feed = new SimplePie(); $feed->set_feed_url('http://simplepie.org/blog/feed/'); $feed->strip_comments(true); $feed->init(); $feed->handle_content_type(); echo $feed->get_title();
See Also
reference/simplepie/strip_comments.txt · Last modified: 2011/03/06 03:56 (external edit)