Better compatibility
This commit is contained in:
parent
8fe1be1a67
commit
7db443e8ab
@ -2444,9 +2444,12 @@ function randomColor($min = 0, $max = 255)
|
|||||||
* @param string $string String to encode
|
* @param string $string String to encode
|
||||||
* @return string String encoded
|
* @return string String encoded
|
||||||
*/
|
*/
|
||||||
function dolEscapeXML($string)
|
if (! function_exists('dolEscapeXML'))
|
||||||
{
|
{
|
||||||
return strtr($string, array('\''=>''','"'=>'"','&'=>'&','<'=>'<','>'=>'>'));
|
function dolEscapeXML($string)
|
||||||
|
{
|
||||||
|
return strtr($string, array('\''=>''','"'=>'"','&'=>'&','<'=>'<','>'=>'>'));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user