stats_esc_html_deep

Modified from stripslashes_deep().

Description

stats_esc_html_deep( $value ); 

Parameters (1)

0. $value
The value.

Usage

  1. if ( !function_exists( 'stats_esc_html_deep' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/stats.php'; 
  3.  
  4. // The value. 
  5. $value = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = stats_esc_html_deep($value); 
  9.  

Defined (1)

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

/modules/stats.php  
  1. function stats_esc_html_deep( $value ) { 
  2. if ( is_array( $value ) ) { 
  3. $value = array_map( 'stats_esc_html_deep', $value ); 
  4. } elseif ( is_object( $value ) ) { 
  5. $vars = get_object_vars( $value ); 
  6. foreach ( $vars as $key => $data ) { 
  7. $value->{$key} = stats_esc_html_deep( $data ); 
  8. } elseif ( is_string( $value ) ) { 
  9. $value = esc_html( $value ); 
  10.  
  11. return $value;