From 8df3db566a3a937b45ebf11adb90d265e6f5e2d4 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 17 Nov 2019 20:45:02 +0100 Subject: initial checking of customized version 1.0rc9 --- themes/CleanFS/templates/feed.rss2.tpl | 65 ++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 themes/CleanFS/templates/feed.rss2.tpl (limited to 'themes/CleanFS/templates/feed.rss2.tpl') diff --git a/themes/CleanFS/templates/feed.rss2.tpl b/themes/CleanFS/templates/feed.rss2.tpl new file mode 100644 index 0000000..e4e653c --- /dev/null +++ b/themes/CleanFS/templates/feed.rss2.tpl @@ -0,0 +1,65 @@ +'; ?> + + + + <?php echo Filters::noXSS($fs->prefs['page_title']); ?> + + + + + + + + [Logo] + + + + 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); + // Best alternative, although will strip some odd custom data from old entries. + echo TextFormatter::render($data); + } + ?>]]> + + + + + + -- cgit v1.2.3-54-g00ecf