Tidied HTML and trimmed unnecessary elements