Add support for tidying badly-formed HTML