You'd need to pull the page down. If you wanted to start out immediately, you might just make a copy and post it to your server. But if you wish to automate this, I'd recommend checking out [man]curl[/man]. Its pretty easy to work with. You're other alternative is fsockets and [man]fsockopen[/man]. Use either of these to retrieve the page to convert.
Once you have the page, something like str_replace would probably be a great start. I don't know if you need the horsepower [man]preg_replace[/man] has (at a cost of performance).