When I create custom HTML blocks in Wordpress Gutenburg, it keeps transforming my code into annoying "this block contains invalid content" messages. Wordpress thinks it's invalid because I'm using these blocks to open and close div's, but it's not, it's perfectly legit code. And Wordpress displaying these messages everywhere really gets in the way of my work and looks bad on the customer-end.
Is there any way, for example a snippet of code I can add into my functions.php, to permanently disable these messages?