rss2html - stripping http:// for mobilizer


I’m using rss2html ( to create accessible rss feeds for disabled students. The links it creates still have the http:// prefix and I am then unable to then parse these through instapaper’s mobilizer (again for accessibility purposes) - unless the http:// is dropped.

Whilst I have found some code to remove the http:// prefix:

<? /* E.g: $s = ''; echo remove_http($s); output: */ function remove_http($url='') { return preg_replace("/^https?:\/\/(.+)$/i","\\1", $url); } ?>

How would I go about implementing it?

Many thanks,


Sponsor our Newsletter | Privacy Policy | Terms of Service