automatically fix malformed html