This is a PHP script that will load the specified HTML document and convert it to a data URL. It's Useful for generating off-line web apps, especially for the iPhone. It makes 3 passes which do the following.
It does not currently convert linked CSS but adding that should be trivial.
This source code is distributed under the MIT License.