Also, at least in our setup, the post links come out wrong. Here's a fix - on line 222:

$link = $pun_config['o_base_url'].'/viewtopic.php?pid='.strval($cur['id']).'#'.strval($cur['id']);

it should say this instead:

$link = $pun_config['o_base_url'].'/viewtopic.php?pid='.strval($cur['id']).'#p'.strval($cur['id']);

... note the "p".

This is a very useful add-on - thanks! However I think there might be a bug in entity_to_decimal_value ($data). Sometimes (unfortunately, I can't pinpoint the situation), URLs in posts get mangled up. because of rss.php.

I replaced the contents of encode_xml ($data) with just

return htmlspecialchars (strip_tags ($data));

and it seems to work for now. I'll report back if there's anything new.

Thanks for this script!
A few modifications to make output validate:
line 145: header ("Content-type: text/xml; charset=ISO-8859-1"); // Change accordingly
line 227: commented out the whole line, apparently the <content> tag is no longer used(?)