$comment->parentNode->
removeChild($comment);
} } // Strip out HTML tags and attributes that might cause various security problems.
// Based on recommendations by Mark Pilgrim at:
// http://diveintomark.org/archives/2003/06/12/how_to_consume_rss_safely
if ($this->strip_htmltags
) { foreach ($this->strip_htmltags
as $tag) { $this->
strip_tag($tag,
$document,
$xpath,
$type);
} } if ($this->strip_attributes
) { foreach ($this->strip_attributes
as $attrib) { $this->
strip_attr($attrib,
$xpath);
} }