Using `esc_attr( get_block_wrapper_attributes() )`, results in `class=””wp-block-foo””`

Use the wp_kses_data function to escape the data. See the official Gutenberg examples repo for an example

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