nsx_fixSlashes

The NextScripts: Social Networks Auto-Poster nsx fixSlashes function.

Description

nsx_fixSlashes( &$value ); 

Parameters (1)

0. $value
The value.

Usage

  1. if ( !function_exists( 'nsx_fixSlashes' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'nextscripts-social-networks-auto-poster/nxs_functions.php'; 
  3.  
  4. // The value. 
  5. $value = &$value; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = nsx_fixSlashes($value); 
  9.  

Defined (1)

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

/nxs_functions.php  
  1. if (!function_exists('nsx_fixSlashes')) { function nsx_fixSlashes(&$value) { while (strpos($value, '\\\\')!==false) $value = str_replace('\\\\', '\\', $value); 
  2. if (strpos($value, "\\'")!==false) $value = str_replace("\\'", "'", $value); if (strpos($value, '\\"')!==false) $value = str_replace('\\"', '"', $value); 
  3. }}