Why does the “visual editor” add useless html-comments and how can I get rid of them?

The block editor is a hideous abortion but it’s here to stay. Your only recourse if you don’t like the way it operates is to use a plugin that replaces it altogether. Attempting to manually edit the mess it generates will break things. Attempting to manually write HTML outside of an HTML block will break things.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)