Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

email_cloaking_shortcode

// Add Shortcode
function email_cloaking_shortcode( $atts ) {

	// Attributes
	extract( shortcode_atts(
		array(
			'email' => '',
		), $atts )
	);

	// Code
	return antispambot( $email );

}
add_shortcode( 'cloak', 'email_cloaking_shortcode' );