Cleans up indentation and invalid html.