nxs_decodeEntitiesFull

The NextScripts: Social Networks Auto-Poster nxs decodeEntitiesFull function.

Description

nxs_decodeEntitiesFull( $string, (constant) $quotes = ENT_COMPAT, (string) $charset = 'utf-8' ); 

Parameters (3)

0. $string
The string.
1. $quotes — Optional. (constant) => ENT_COMPAT
The quotes.
2. $charset — Optional. (string) => 'utf-8'
The charset.

Usage

  1. if ( !function_exists( 'nxs_decodeEntitiesFull' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'nextscripts-social-networks-auto-poster/nxs_functions.php'; 
  3.  
  4. // The string. 
  5. $string = null; 
  6.  
  7. // The quotes. 
  8. $quotes = ENT_COMPAT; 
  9.  
  10. // The charset. 
  11. $charset = 'utf-8'; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = nxs_decodeEntitiesFull($string, $quotes, $charset); 
  15.  

Defined (1)

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

/nxs_functions.php  
  1. if (!function_exists('nxs_decodeEntitiesFull')) { function nxs_decodeEntitiesFull($string, $quotes = ENT_COMPAT, $charset = 'utf-8') { 
  2. return html_entity_decode(preg_replace_callback('/&([a-zA-Z][a-zA-Z0-9]+);/', 'nxs_convertEntity', $string), $quotes, $charset);  
  3. }}