All pastes #84080 Raw Edit

Miscellany

public text v1 · immutable
·published 2006-07-10 14:28 UTC
rendered paste body
--- aggregator.module.txt       2006-07-10 16:19:55.000000000 +0200
+++ aggregator.module.txt-new   2006-07-10 16:25:23.000000000 +0200
@@ -1336,7 +1336,7 @@ function theme_aggregator_page_item($ite
   $output .= "<div class=\"feed-item-meta\">$source <span class=\"feed-item-date\">$source_date</span></div>\n";

   if ($item->description) {
-    $output .= '<div class="feed-item-body">'. aggregator_filter_xss($item->description) ."</div>\n";
+    $output .= '<div class="feed-item-body">'. aggregator_filter_xss(nl2br($item->description)) ."</div>\n";
   }

   $result = db_query('SELECT c.title, c.cid FROM {aggregator_category_item} ci LEFT JOIN {aggregator_category} c ON ci.cid = c.cid WHERE ci.iid = %d ORDER BY c.title', $item->iid);