Bug fix

Fixed method for removing excess html and body tags to work against the
parsed SGML document instead of manipulating the source.