Skip to content

Commit

Permalink
Minor feeds fixes to be W3C-validator compliant - fix shaarli#914
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas-C committed Aug 6, 2017
1 parent c7fcea1 commit 395c0e8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions tpl/default/feed.atom.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<generator>Shaarli</generator>
{loop="$links"}
<entry>
<title>{$value.title}</title>
<title>{$value.title|htmlspecialchars}</title>
{if="$usepermalinks"}
<link href="{$value.guid}#" />
{else}
Expand All @@ -28,7 +28,7 @@
<published>{$value.pub_iso_date}</published>
<updated>{$value.up_iso_date}</updated>
{/if}
<content type="html" xml:lang="{$language}"><![CDATA[{$value.description}]]></content>
<content type="html" xml:lang="{$language}">{$value.description|htmlspecialchars}></content>
{loop="$value.taglist"}
<category scheme="{$index_url}?searchtags=" term="{$value|strtolower}" label="{$value}" />
{/loop}
Expand Down
10 changes: 5 additions & 5 deletions tpl/default/feed.rss.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{$pagetitle}</title>
<title>{$pagetitle|htmlspecialchars}</title>
<link>{$index_url}</link>
<description>Shaared links</description>
<language>{$language}</language>
Expand All @@ -13,7 +13,7 @@
{/loop}
{loop="$links"}
<item>
<title>{$value.title}</title>
<title>{$value.title|htmlspecialchars}</title>
<guid isPermaLink="{if="$usepermalinks"}true{else}false{/if}">{$value.guid}</guid>
{if="$usepermalinks"}
<link>{$value.guid}</link>
Expand All @@ -22,11 +22,11 @@
{/if}
{if="$show_dates"}
<pubDate>{$value.pub_iso_date}</pubDate>
<atom:modified>{$value.up_iso_date}</atom:modified>
<atom:updated>{$value.up_iso_date}</atom:updated>
{/if}
<description><![CDATA[{$value.description}]]></description>
<description>{$value.description|htmlspecialchars}></description>
{loop="$value.taglist"}
<category domain="{$index_url}?searchtags=">{$value}</category>
<category domain="{$index_url}?searchtags=">{$value|htmlspecialchars}</category>
{/loop}
{loop="$value.feed_plugins"}
{$value}
Expand Down

0 comments on commit 395c0e8

Please sign in to comment.