Permalink
Browse files

Add RSS 0.9 <description> to get_description. Fixes issue #23

  • Loading branch information...
1 parent 0588784 commit ffaea4387074973fd6ff68708962c83db6a422c8 @rmccue rmccue committed with rmccue Feb 18, 2010
Showing with 5 additions and 0 deletions.
  1. +5 −0 simplepie.inc
View
@@ -3279,6 +3279,11 @@ class SimplePie_Item
{
return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
}
+ elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_RSS_090, 'description'))
+ {
+ return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_HTML);
+ }
+
elseif (!$description_only)
{
return $this->get_content(true);

0 comments on commit ffaea43

Please sign in to comment.