rss-title.txt - sfeed_tests - sfeed tests and RSS and Atom files
(HTM) git clone git://git.codemadness.org/sfeed_tests
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
rss-title.txt (1411B)
---
1 A note about HTML in titles
2 ---------------------------
3
4 - RSS does not allow HTML in titles.
5 - Atom does allow HTML in titles.
6 - sfeed does not handle HTML in titles and will show them as plain-text.
7 "Atom Processors that display such content MAY use that markup to aid in its
8 display."
9
10
11 For RSS:
12
13 HTML is not allowed in titles, it is allowed in descriptions:
14 https://www.rssboard.org/rss-specification
15
16 A news post of the RSS board addressing this question:
17 https://www.rssboard.org/news/128/html-titles-and-descriptions
18
19 Maybe the confusion comes from the fact that RSS must have either a title or a
20 description. In some clients when there is no title the description is used
21 and HTML is allowed in descriptions.
22
23
24 For Atom:
25
26 In the Atom standard the title is not optional and it may contain HTML:
27 4.2.14. The "atom:title" Element
28 https://datatracker.ietf.org/doc/html/rfc4287#section-4.2.14
29
30 So an atomTextConstruct may have a HTML, XHTML or text type. The default is
31 text.
32 3.1. Text Constructs
33 https://datatracker.ietf.org/doc/html/rfc4287#section-3.1
34
35
36 For sfeed:
37
38 To support HTML in Atom titles this would open a rabbithole, because one should
39 have an additional HTML parser that handles HTML, all named entities and it
40 handle its quirks.
41
42 A foolproof work-around for broken RSS feed would not be possible since there is no
43 reliable way to tell if the item should have actual HTML or a text.