No, you don't have to escape the data. And it doesn't need to be escaped. Please take a look at the_post_thumbnail() function, it didn't do any escaping.
No, you don't have to escape the data. And it doesn't need to be escaped. Please take a look at the_post_thumbnail() function, it didn't do any escaping.