epm_sanitize_text_field

Sanitize text fields.

Description

epm_sanitize_text_field( $input ); 

Parameters (1)

0. $input
The input.

Usage

  1. if ( !function_exists( 'epm_sanitize_text_field' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'easy-peasy-mailchimp-ajax-form/includes/admin/settings/register-settings.php'; 
  3.  
  4. // The input. 
  5. $input = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = epm_sanitize_text_field($input); 
  9.  

Defined (1)

The function is defined in the following location(s).

/includes/admin/settings/register-settings.php  
  1. function epm_sanitize_text_field( $input ) { 
  2. return trim( $input );