ninja_forms_html_entity_decode_deep

The Ninja Forms ninja forms html entity decode deep function.

Description

ninja_forms_html_entity_decode_deep( $value, (int) $flag = 2 ); 

Parameters (2)

0. $value
The value.
1. $flag — Optional. (int) => 2
The flag.

Usage

  1. if ( !function_exists( 'ninja_forms_html_entity_decode_deep' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'ninja-forms/deprecated/includes/database.php'; 
  3.  
  4. // The value. 
  5. $value = null; 
  6.  
  7. // The flag. 
  8. $flag = 2; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = ninja_forms_html_entity_decode_deep($value, $flag); 
  12.  

Defined (1)

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

/deprecated/includes/database.php  
  1. function ninja_forms_html_entity_decode_deep( $value, $flag = ENT_COMPAT ) { 
  2. $value = is_array($value) ? 
  3. array_map('ninja_forms_html_entity_decode_deep', $value) : 
  4. html_entity_decode( $value, $flag ); 
  5. return $value;