intertwingly

It’s just data

Text Constructs


Ben Smedberg: Announcing the release of the Atom 1.0 plugin for Wordpress, version 0.5

Looking at the output, it is valid.  Bravo!

Looking closer, the plugin marks titles as html as they might contain markup.  Most don’t.  It marks content elements as html as they might not be well formed.  Most are.  And it uses CDATA, even though the text might contain the characters ]]>.  Admittedly, most don’t, but they might.

Last time I checked, PHP has the ability to do if-checks.  :-)

This might be overkill, but I’m just throwing it out there for consideration.  text.phptext.phps.  Test cases are near the bottom.