## Using esc_attr( get_block_wrapper_attributes() ), results in class=""wp-block-foo""

Question

So, phpcs is telling me I need to escape the get_block_wrapper_attributes(); function.

I thought it would be a simple as esc_attr( get_block_wrapper_attributes() );, but it would appear not to be the case as the output; class=""wp-block-foo"" is not valid markup?

Is this a bug? or am I missing something? or maybe I’ve done something wrong… I’m not sure, so I figured I’d ask.