mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 09:38:53 +01:00
fix for bug [ 954770 ] UTF-8 Support (in developer tools)
- regular htmlspecialchars translated &#([0-9a-f]{4}); to &#\\1; - which is not correct, at least for our purpose ==> we replace '&#' after htmlspecialchars again with '&#' ==> now eg. persian language works correct in the TranslationTools
This commit is contained in:
parent
22870f672e
commit
9694c7e2ea
@ -127,7 +127,12 @@ class html
|
|||||||
function htmlspecialchars($str)
|
function htmlspecialchars($str)
|
||||||
{
|
{
|
||||||
// add @ by lkneschke to supress warning about unknown charset
|
// add @ by lkneschke to supress warning about unknown charset
|
||||||
return @htmlspecialchars($str,ENT_COMPAT,$this->charset);
|
$str = @htmlspecialchars($str,ENT_COMPAT,$this->charset);
|
||||||
|
|
||||||
|
// we need '&#' unchanged, so we translate it back
|
||||||
|
$str = str_replace('&#','&#',$str);
|
||||||
|
|
||||||
|
return $str;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
Loading…
Reference in New Issue
Block a user