view)) { $body = elgg_view($item->view, array('item' => $item)); $time = date('r', $item->posted); if ($entity = get_entity($item->object_guid)) { $url = htmlspecialchars($entity->getURL()); } else { $url = $vars['url']; } $title = strip_tags($body); echo <<<__HTML $url $time <![CDATA[$title]]> $url __HTML; $i++; if ($i >= $vars['limit']) { break; } } } }