forked from extern/egroupware
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)
|
||||
{
|
||||
// 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