apgmxs_escapexml

The Google Monthly XML Sitemap apgmxs escapexml function.

Description

apgmxs_escapexml( $string ); 

Parameters (1)

0. $string
The string.

Usage

  1. if ( !function_exists( 'apgmxs_escapexml' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-monthly-xml-sitemap/monthly-xml-sitemap.php'; 
  3.  
  4. // The string. 
  5. $string = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = apgmxs_escapexml($string); 
  9.  

Defined (1)

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

/monthly-xml-sitemap.php  
  1. function apgmxs_escapexml($string) { 
  2. return str_replace ( array ( '&', '"', "'", '<', '>'), array ( '&' , '"', ''' , '<' , '>'), $string);