english/libraries/joomla/filter/filteroutput.php
/**
	 * Callback method for replacing & with &amp; in a string
	 *
	 * @param   string  $m   String to process
	 *
	 * @return  string  Replaced string
	 * @since   11.1
	 */
Callback method for replacing & with & in a string
@param   string  $m   String to process

@return  string  Replaced string
@since   11.1
Callback method for replacing & with & in a string @param string $m String to process @return string Replaced string @since 11 . 1
public static function _ampReplaceCallback($m)
	{
		$rx = '&(?!amp;)';
		return preg_replace('#'.$rx.'#', '&amp;', $m[0]);
	}
public static function _ampReplaceCallback ( $ m ) { $ rx = '&(?!amp;)' ; return preg_replace ( '#' . $ rx . '#' , '&amp;' , $ m [ 0 ] ) ; }
Callback method for replacing & with &amp; in a string
 @param   string  $m   String to process
Callback method for replacing & with &amp ; in a string @param string $m String to process