I insert a custom code and edit it. I get <div>Custom Code</div>
In the html view appears correct <div>Custom Code</div>
Now I edit the code... deleting the default div and insert <h1>test</h1>
Everything correct in the html-view.
Now I add a second line with <h1>test</h1>
In the custom code editor appears correctly
<h1>test</h1>
<h1>test</h1>
but in the html-view appears an additional <div>
<div>
<h1>test</h1>
<h1>test</h1>
</div>