Html Markup Automatically Deleting After Save

Hello everyone,

I'm encountering an issue while attempting to save my html, on the page editor.

The save seems to work at first glance, only after refreshing the page, a lot of html elements are deleted, including: class, details, summary.

Would really appreciate the help.