_convert_urlencoded_to_entities

Preview fix for JavaScript bug with foreign languages.

Description

(string) _convert_urlencoded_to_entities( (array) $match ); 

Returns (string)

Parameters (1)

0. $match (array)
Match array from preg_replace_callback.

Usage

  1. if ( !function_exists( '_convert_urlencoded_to_entities' ) ) { 
  2. require_once ABSPATH . WPINC . '/post-template.php'; 
  3.  
  4. // Match array from preg_replace_callback. 
  5. $match = array(); 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = _convert_urlencoded_to_entities($match); 
  9.  

Defined (1)

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

/wp-includes/post-template.php  
  1. function _convert_urlencoded_to_entities( $match ) { 
  2. return '&#' . base_convert( $match[1], 16, 10 ) . ';';