bb_specialchars

Deprecated functions from past bbPress versions.

Description

bb_specialchars( $text, (int) $quotes = 0 ); 

You shouldn't use these globals and functions and look for the alternatives instead. The functions and globals will be removed in a later version.

Parameters (2)

0. $text
The text.
1. $quotes — Optional. (int)
The quotes.

Usage

  1. if ( !function_exists( 'bb_specialchars' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bbpress/bb-includes/functions.bb-deprecated.php'; 
  3.  
  4. // The text. 
  5. $text = null; 
  6.  
  7. // The quotes. 
  8. $quotes = -1; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = bb_specialchars($text, $quotes); 
  12.  

Defined (1)

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

/bp-forums/bbpress/bb-includes/functions.bb-deprecated.php  
  1. function bb_specialchars( $text, $quotes = 0 ) { 
  2. bb_log_deprecated('function', __FUNCTION__, 'esc_html'); 
  3. return esc_html( $text, $quotes );