Skip to content

Commit 862be0d

Browse files
author
Jim Hu
committed
line feeds in rss feeds
1 parent e8c31f7 commit 862be0d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

calendars/test.ics

+2-2
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ SEQUENCE:7
102102
UID:starts on 07
103103
DTSTAMP:20020918T224617Z
104104
SUMMARY:Earlier overlap
105-
DESCRIPTION:this is a test
106-
multiline
105+
DESCRIPTION:this is a test \n
106+
multiline \n
107107
description
108108
STATUS:CONFIRMED
109109
DURATION:P3D

rss/rss_common.php

+1
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@
185185
#uncomment for shorter event text with ...
186186
# $event_text = word_wrap($event_text, 21, $tomorrows_events_lines);
187187
$description = stripslashes(urldecode($val["description"]));
188+
$description = str_replace('<br />',"\n",$description);
188189
$description = strip_tags($description, '<b><i><u>');
189190
$description = str_replace('&','&amp;',$description);
190191
$description = str_replace('&amp;amp;','&amp;',$description);

0 commit comments

Comments
 (0)