Don't know why you would want to do that, but to each their own. The resulting file would be a text file, not an html file. And there are much easier ways of doing the same thing with basic shell commands. Why script for something that doesn't need to be scripted?
I concur.