Pomax / EasyPageComments

A simple instant-comments-section for pages based on PHP at the server, and _optionally_ JavaScript at the front end
17 stars 11 forks source link

<sub> tag in RSS feed breaks some readers #12

Open JohnWestlund opened 10 years ago

JohnWestlund commented 10 years ago

The <su\b>th tags break some RSS feed readers causing them to display "null" as the title.

Pomax commented 10 years ago

While inconvenient, the RSS title element, by DTD rules, contains PCDATA, rather than CDATA, so those <sub> should not cause any problems. If the RSS reader you use breaks on them, then it'll be worth filing a bug with whoever maintains it and have them fix this issue. I'll think about whether there's a simple fix that doesn't involve "blank out HTML tags entire", but in the mean time this is mostly an RSS interpreter bug.