Here is the code I use in my view :
{% set field = attribute( post, 'photo-q' ) %}
img src="{{ field.medium_large.url }}" width="{{ field.medium_large.width }}" height="{{ field.medium_large.height }}" title="{{ post.title }}"
My post title is : What means "N" in the word NASA ?
The output brocken code is :
img src="/20221022215105-1225212.jpg" width="768" height="384" title="What means "N" in the word NASA"
I will try to use wp_strip_all_tags to see if it can fix it.