Process incorrect HTML