latex_entity_decode

The Jetpack by WordPress.com latex entity decode function.

Description

latex_entity_decode( $latex ); 

Parameters (1)

0. $latex
The latex.

Usage

  1. if ( !function_exists( 'latex_entity_decode' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/latex.php'; 
  3.  
  4. // The latex. 
  5. $latex = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = latex_entity_decode($latex); 
  9.  

Defined (1)

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

/modules/latex.php  
  1. function latex_entity_decode( $latex ) { 
  2. return str_replace( array( '<', '>', '"', ''', '&', '&', "\n", "\r" ), array( '<', '>', '"', "'", '&', '&', ' ', ' ' ), $latex );