diff options
author | Jim Hu <jimhu@users.sourceforge.net> | 2009-01-30 21:45:54 +0000 |
---|---|---|
committer | Jim Hu <jimhu@users.sourceforge.net> | 2009-01-30 21:45:54 +0000 |
commit | 862be0daf7105f7bd8a1482dded2bd331cad33a4 (patch) | |
tree | 2c39cf789d9c0eaa6efe931a91f850f3a05dee45 | |
parent | e8c31f7e5ba6d6bb7da965211ca69e6fab86227f (diff) | |
download | phpicalendar-862be0daf7105f7bd8a1482dded2bd331cad33a4.tar.gz phpicalendar-862be0daf7105f7bd8a1482dded2bd331cad33a4.tar.bz2 phpicalendar-862be0daf7105f7bd8a1482dded2bd331cad33a4.zip |
line feeds in rss feeds
-rw-r--r-- | calendars/test.ics | 4 | ||||
-rw-r--r-- | 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('<br />',"\n",$description); $description = strip_tags($description, '<b><i><u>'); $description = str_replace('&','&',$description); $description = str_replace('&amp;','&',$description); |