Fixes malformed html.