php - Escaping text in Wordpress using built in functions -
not sure extent need escape in wordpress. building child theme on local machine, , want make sure secure.
so when ever echo data contained in variable using this:
esc_html_e( $user_info->first_name, 'onepress' );
now if have html element following:
<span class="subscribetext">subscribe</span>
would need escape this:
<span class="subscribetext"><?php esc_html_e( 'subscribe', 'onepress' ); ?></span>
or going far.
cheers
Comments
Post a Comment