/**
  * Render single feed item
  *
  * @param Angie_Feed_Item $item
  * @return string
  */
 private function renderItem(Angie_Feed_Item $item)
 {
     $result = "<item>\n";
     $result .= '<title>' . clean($item->getTitle()) . "</title>\n";
     $link = externalUrl(clean($item->getLink()));
     $result .= '<link>' . $link . "</link>\n";
     //$result .= '<guid>' . $link . "</guid>\n";
     if ($description = trim($item->getDescription())) {
         $description = "empty";
     }
     // if
     $result .= '<description>' . clean($description) . "</description>\n";
     $author = $item->getAuthor();
     if ($author instanceof Angie_Feed_Author) {
         $result .= '<author>' . clean($author->getEmail()) . ' (' . clean($author->getName()) . ")</author>\n";
     }
     // if
     $timestamp = NULL;
     $pubdate = $item->getPublicationDate();
     if ($pubdate instanceof DateTimeValue) {
         $result .= '<pubDate>' . $pubdate->toRSS() . "</pubDate>\n";
         $timestamp = $pubdate->getTimestamp();
     }
     // if
     $result .= '<guid>' . $this->buildGuid(clean($item->getLink()), $timestamp) . "</guid>\n";
     $result .= '</item>';
     return $result;
 }
 /**
 * Render single feed item
 *
 * @param Angie_Feed_Item $item
 * @return string
 */
 private function renderItem(Angie_Feed_Item $item) {
   $result  = "<item>\n";
   $result .= '<title>' . clean($item->getTitle()) . "</title>\n";
   $result .= '<link>' . clean($item->getLink()) . "</link>\n";
   if($description = trim($item->getDescription())) {
     $result .= '<description>' . clean($description) . "</description>\n";
   } // if
   
   $author = $item->getAuthor();
   if($author instanceof Angie_Feed_Author) {
     $result .= '<author>' . clean($author->getEmail()) . ' (' . clean($author->getName()) . ")</author>\n";
   } // if
   
   $pubdate = $item->getPublicationDate();
   if($pubdate instanceof DateTimeValue) {
     $result .= '<pubDate>' . $pubdate->toRSS() . "</pubDate>\n";
   } // if
   
   $result .= '</item>';
   return $result;
 } // renderItem