From 6854cb3f4d8219cf1829e32122eb2502a916eae9 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sat, 1 Feb 2020 09:05:48 +0100 Subject: initial checkin --- themes/CleanFS/templates/feed.rss1.tpl | 70 ++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 themes/CleanFS/templates/feed.rss1.tpl (limited to 'themes/CleanFS/templates/feed.rss1.tpl') diff --git a/themes/CleanFS/templates/feed.rss1.tpl b/themes/CleanFS/templates/feed.rss1.tpl new file mode 100644 index 0000000..4b37832 --- /dev/null +++ b/themes/CleanFS/templates/feed.rss1.tpl @@ -0,0 +1,70 @@ +'; ?> + + + + <?php echo Filters::noXSS($fs->prefs['page_title']); ?> + + + + + + + + + + + + + + + + + FS#<?php echo Filters::noXSS($row['task_id']); ?>: <?php echo Filters::noXSS($row['item_summary']); ?> + + + + /', '>', $data); + $data = preg_replace('/"/', '"', $data); + $data = nl2br($data); + } + else { + // Assume a new entry. Problem cases when old entry started with + // < are just not handled. Must draw the line somewhere, even if the + // browser will not show it or has an error. Those cases should be quite few. + } + + // Single case. Old entry that started with <. Can contain &'s too. + // Convert to entity, without touching already existing entities. + $data = preg_replace('/&(?!([a-z]+|#[0-9]+);)/', '&', $data); + + // Still double quotes there? Convert any not appearing inside tags. + // Not sure if ckeditor makes that kind of entries. + $data = preg_replace('/"(?=[^>]*(<|$))/', '"', $data); + $data = TextFormatter::render($data); + } + ?> + + ]]> + + + -- cgit v1.2.3-70-g09d2