forked from Wavyzz/dolibarr
Fix phpcs
This commit is contained in:
@@ -2438,20 +2438,22 @@ function randomColor($min = 0, $max = 255)
|
||||
return randomColorPart($min, $max) . randomColorPart($min, $max) . randomColorPart($min, $max);
|
||||
}
|
||||
|
||||
/**
|
||||
* Encode string for xml usage
|
||||
*
|
||||
* @param string $string String to encode
|
||||
* @return string String encoded
|
||||
*/
|
||||
|
||||
if (! function_exists('dolEscapeXML'))
|
||||
{
|
||||
/**
|
||||
* Encode string for xml usage
|
||||
*
|
||||
* @param string $string String to encode
|
||||
* @return string String encoded
|
||||
*/
|
||||
function dolEscapeXML($string)
|
||||
{
|
||||
return strtr($string, array('\''=>''','"'=>'"','&'=>'&','<'=>'<','>'=>'>'));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Return automatic or manual in current language
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user