1. Escaping
2. Translation and Escape
Note:
<label for="<?php esc_attr__( $tid, \'textdomain\' ) ); ?>">
<label for="<?php printf( esc_attr__( \'%s\', \'textdomain\' ), $tid ); ?>">
Valid:
<label for="<?php printf( esc_attr__( \'%s static text\', \'textdomain\' ), $tid ); ?>">
转义和翻译HTML:
<label ..><?php esc_html__( \'Text\', \'textdomain\' ); ?></label>