[Soft Rejected] All theme text strings are to be translatable and properly escaped

Hello All,

I am working my First WordPress Theme. I got Soft Rejected in the following reason.

====================================================================

All theme text strings are to be translatable and properly escaped.

It’s possible for translators to sneak HTML and JS into translation files or even just inadvertently mess something up. So, it’s good practice to simply escape them. https://github.com/WordPress/twentysixteen/commit/112a2a952e8906931f30a2a83bffe3a4d12ccef0

For example(s) and there are more:

Now i’m confused, am i supposed to change TGM config file from this?

'name'     => __( 'Contact Form 7', 'gtbuilder' ),

Change to

'name'     => esc_html__( 'Contact Form 7', 'gtbuilder' ),

According to the github link mentioned above, isn’t it over escaping?

Can anyone please clear this confusion and help me?

Thanks in advance.

RadiusTheme

Anyone there who can help me for this issue?

Not only for TGM, for all if you have any others

Thanks for your reply.

So I will use this right?

esc_html

Yes just use it.

No use esc_html__. It is a very big functions that require time, its slow, for only string use esc_attr__()