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

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -