Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encode & and < with hex codes #99

Open
jo-so opened this issue Jul 3, 2020 · 1 comment
Open

Encode & and < with hex codes #99

jo-so opened this issue Jul 3, 2020 · 1 comment

Comments

@jo-so
Copy link

jo-so commented Jul 3, 2020

The feed validator suggests to encode & and < with &#26; and &#x3C; for compatibility reasons:

A publisher should encode "&" and "<" in plain text using hexadecimal character references. When encoding the ">" character, a publisher should use the hexadecimal reference >.

The following input gave me the suggestion:

<rss version="2.0"><channel><title>TEST</title><link>https://example.org/</link><description>Test</description><language>de-de</language><copyright>© 2020 Jon Doe &lt;[email protected]&gt;</copyright></channel></rss>
@andy128k
Copy link
Member

andy128k commented Jul 5, 2020

Recommendation looks dated (late 2007). It is based on tests in different RSS clients. Let's look at this list.

  1. Apple Safari -- RSS removed around 2017;
  2. Bloglines -- became unavailable in early 2015;
  3. Mozilla Firefox -- RSS removed around late 2018;
  4. Internet Explorer -- probably it was IE 7 while current is 11;
  5. Opera -- switched to Chromium engine in 2013;
  6. FeedDemon -- terminated in 2013;
  7. Google Reader -- terminated in 2013;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants