Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Description of bug in BBC's feeds.

11 January 2013. Double-encoded markup in BBC Atom/RSS feeds.

BBC Atom feeds are double-encoding XHTML markup. But content of an <content type="xhtml">...</content> element must be the actual markup, not escaped markup.

This bug results in reader software showing the markup rather than the formatted content.

See Atom processing model:

E.g. contains an entry like this (edited for clarity). Note the <p> tag is encoded as &lt;p&gt;.

<entry xmlns:xhtml="">
    <title type="html"><![CDATA[Generations Apart]]></title>
    <summary type="html"><![CDATA[<p>Putting Generations Apart together is like a massive jigsaw puzzle. Not one of those ones with huge amounts of blue sky and an annoying lake that’s almost the same colour, but definitely one that has something that appears to be an ever changing vista in the middle.  </p>
    <link rel="alternate" type="text/html" href=""/>
      <name>Fi Glover</name>
    <content xmlns:xhtml="" type="xhtml">
      <xhtml:div xmlns:xhtml="">&lt;p&gt;&lt;em&gt;Fi Glover presents Generations Apart, ...</xhtml:div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment