What is proper strings escaping in WordPress?

wordpress

#1

There is the following line in WordPress theme that got rejected with the reason of wrong string escaping.

Can anybody advise, what would be the correct string escaping in this case?

<?php next_comments_link( __( 'Newer Comments →', 'expedition' ) ); ?>

#2

Here it is: https://codex.wordpress.org/Function_Reference/esc_html_2


#3

The following should be sufficient

<?php next_comments_link( esc_html_e( 'Newer Comments &rarr;', 'expedition' ) ); ?>

https://codex.wordpress.org/Function_Reference/esc_html_e


#4

Thanks guys!