esc_attr( get_the_title( $cat_image ) )

‘IR cats’ is a thing that exists

‘IR cats’ is a thing that exists

Enjoy.