sorry. I had a mistake in my thinking. A correction of invalid html has not taken place here at all.
I thought the html field would only put the content of the field into the code. Instead the html field creates a div that encloses my html code. Leaving a div open and closing it later further down the form is not possible that way.