libraries/joomla/filter/output.php
/**
	 * This method processes a string and replaces all instances of & with &amp; in links only.
	 *
	 * @param   string  $input  String to process
	 *
	 * @return  string  Processed string
	 *
	 * @since   11.1
	 */
This method processes a string and replaces all instances of & with & in links only.
@param   string  $input  String to process

@return  string  Processed string


This method processes a string and replaces all instances of & with & in links only . @param string $input String to process @return string Processed string
public static function linkXHTMLSafe($input)
	{
		$regex = 'href="([^"]*(&(amp;){0})[^"]*)*?"';
		return preg_replace_callback("#$regex#i", array('JFilterOutput', '_ampReplaceCallback'), $input);
	}
public static function linkXHTMLSafe ( $ input ) { $ regex = 'href="([^"]*(&(amp;){0})[^"]*)*?"' ; return preg_replace_callback ( " # $ regex #i " , array ( 'JFilterOutput' , '_ampReplaceCallback' ) , $ input ) ; }
This method processes a string and replaces all instances of & with &amp; in links only.
This method processes a string and replaces all instances of & with &amp ; in links only .