From 862be0daf7105f7bd8a1482dded2bd331cad33a4 Mon Sep 17 00:00:00 2001 From: Jim Hu Date: Fri, 30 Jan 2009 21:45:54 +0000 Subject: line feeds in rss feeds --- calendars/test.ics | 4 ++-- rss/rss_common.php | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/calendars/test.ics b/calendars/test.ics index 2cc1e32..0d6b6cb 100644 --- a/calendars/test.ics +++ b/calendars/test.ics @@ -102,8 +102,8 @@ SEQUENCE:7 UID:starts on 07 DTSTAMP:20020918T224617Z SUMMARY:Earlier overlap -DESCRIPTION:this is a test - multiline +DESCRIPTION:this is a test \n + multiline \n description STATUS:CONFIRMED DURATION:P3D diff --git a/rss/rss_common.php b/rss/rss_common.php index 71f415e..4601357 100644 --- a/rss/rss_common.php +++ b/rss/rss_common.php @@ -185,6 +185,7 @@ do { #uncomment for shorter event text with ... # $event_text = word_wrap($event_text, 21, $tomorrows_events_lines); $description = stripslashes(urldecode($val["description"])); + $description = str_replace('
',"\n",$description); $description = strip_tags($description, ''); $description = str_replace('&','&',$description); $description = str_replace('&','&',$description); -- cgit v1.2.3