aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Hu <jimhu@users.sourceforge.net>2009-02-01 21:22:24 +0000
committerJim Hu <jimhu@users.sourceforge.net>2009-02-01 21:22:24 +0000
commitdd55313b66a25eeb19f708b9d050bb53d76abba0 (patch)
tree7e0a07cc6ad1e3b5c60b48175fd10a620cebeff6
parentc819776288d31859f6f13e74f7dd7e2f875d6d15 (diff)
downloadphpicalendar-dd55313b66a25eeb19f708b9d050bb53d76abba0.zip
phpicalendar-dd55313b66a25eeb19f708b9d050bb53d76abba0.tar.gz
phpicalendar-dd55313b66a25eeb19f708b9d050bb53d76abba0.tar.bz2
fix tags and linebreaks in tooltips
-rw-r--r--functions/date_functions.php1
-rw-r--r--rss/rss2.0.php4
-rw-r--r--rss/rss_common.php4
3 files changed, 6 insertions, 3 deletions
diff --git a/functions/date_functions.php b/functions/date_functions.php
index 74e428e..5a80cb2 100644
--- a/functions/date_functions.php
+++ b/functions/date_functions.php
@@ -192,6 +192,7 @@ function openevent($event_date, $time, $uid, $arr, $lines = 0, $length = 0, $lin
}
if (!empty($event_text)) {
+ $title = strip_tags(str_replace("<br />","\n",$title));
if ($lines > 0) {
$event_text = word_wrap($event_text, $length, $lines);
}
diff --git a/rss/rss2.0.php b/rss/rss2.0.php
index 7e37ec3..2cfef4a 100644
--- a/rss/rss2.0.php
+++ b/rss/rss2.0.php
@@ -84,6 +84,8 @@ function rss_noitems(){
}
function rss_close(){
- return "\n</channel>\n</rss>\n";
+ global $rss_link;
+ return "\n
+ <atom:link href=\"$rss_link\" rel=\"self\" type=\"application/rss+xml\" />\n</channel>\n</rss>\n";
}
?>
diff --git a/rss/rss_common.php b/rss/rss_common.php
index 4601357..dc3c5ca 100644
--- a/rss/rss_common.php
+++ b/rss/rss_common.php
@@ -185,8 +185,8 @@ 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('<br />',"\n",$description);
+ $description = strip_tags($description, '<b><i><u><br>');
$description = str_replace('&','&amp;',$description);
$description = str_replace('&amp;amp;','&amp;',$description);
$rss_title = urldecode ("$dayofweek: $event_text");

© 2014-2020 Faster IT GmbH | imprint | privacy policy