Fix broken HTML tags and remove unnecessary variables.