I've been trying to use HTML::PrettyPrinter with a little difficulty, it seems that the module inserts tags such as html, body and head automatically which I do not want because the HTML I am wanting to format are only snippets. I've racked my brains going through the man page of the module and of HTML::TreeBuilder and still can't figure out how to stop it from inserting those 'implicit' tags, I've tried messing around with group_remove() but to no avail.