Strip Rss Plugin

This is a VERY early release of a WordPress plugin designed to to strip out the BAD formatting that sponsors often include in their RSS feeds. When you activate the plugin in your installation of WordPress, it adds an item in the submenu of options that is labeled “Strip Rss”. I have set the default settings to only strip out in-line style statements, but with a bit of modification, you can have it strip out font and center tags too. The value will be:

/style="[^"]*”/ |
/<[\/]*font[^>]*>/ |
/<[\/]*center>/ |

MAKE SURE THAT YOU HAVE A SPACE BEFORE AND AFTER THE PIPE “|” CHARACTER. Without it, things will mess up.

Basically, it runs a preg_replace on the content, removing the junk you don’t want in your rss-fed blogs. You can really use it to replace anything in the content, but I will leave it to your imagination as to how to use it to do that. Read up on regular expressions, man!

I’m releasing this under the GPL, so it is yours to use. This does not allow you to remove my name from the product and sell it as your own or give it away as your own, so don’t. If you really like it, or you just want me to snazzy up the interface and make it easier to use, consider donating some Netpond points to me on Netpond.com. But it is really up to you.

Oh, and a final note: if you get this dreaded quote:

Your current user level is insufficient to do that.

try and edit your profile by adding the link of the blog in the “website” field of your profile - basically, update your profile with a bit of information, as that seems to fix the issues with get_currentuserinfo() not returning the proper $userdata properties. Looks like an issue with new installs, and it happened to Pam on Netpond with another plugin I wrote, the X-Digg plugin.

Click “Save-As” for the Strip Rss Formatting Wordpress Plugin.

One more thing: when you extract this, just put the PHP file in your root plugins folder, no need for an extra directory in there.