I've come across the
esc_attr_e() functions which allow me to escape translated text strings. I'm now using these instead of
_e() where appropriate.
_n() function allows for both single and plural forms to be translated. I don't think there's an
esc_attr_n() function in WordPress. How can I escape the translated text in this case? Here's my current use of the
printf( _n( '1 item', '%d items', $count, 'textdomain' ), number_format_i18n( $count ) );