apgnsm_escapexml

The Google News Sitemap apgnsm escapexml function.

Description

apgnsm_escapexml( $string ); 

Parameters (1)

0. $string
The string.

Usage

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

Defined (1)

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

/apgnsm.php  
  1. function apgnsm_escapexml($string) { 
  2. return str_replace ( array ( '&', '"', "'", '<', '>'), array ( '&' , '"', ''' , '<' , '>'), $string);