Clean up malformed html