Merge branch '16.0' of git@github.com:Dolibarr/dolibarr.git into 16.0
This commit is contained in:
commit
90a42b23b3
@ -1448,9 +1448,9 @@ function dol_escape_htmltag($stringtoescape, $keepb = 0, $keepn = 0, $noescapeta
|
|||||||
|
|
||||||
// escape quotes and backslashes, newlines, etc.
|
// escape quotes and backslashes, newlines, etc.
|
||||||
if ($escapeonlyhtmltags) {
|
if ($escapeonlyhtmltags) {
|
||||||
$tmp = htmlspecialchars_decode($stringtoescape, ENT_COMPAT);
|
$tmp = htmlspecialchars_decode((string) $stringtoescape, ENT_COMPAT);
|
||||||
} else {
|
} else {
|
||||||
$tmp = html_entity_decode($stringtoescape, ENT_COMPAT, 'UTF-8');
|
$tmp = html_entity_decode((string) $stringtoescape, ENT_COMPAT, 'UTF-8');
|
||||||
}
|
}
|
||||||
if (!$keepb) {
|
if (!$keepb) {
|
||||||
$tmp = strtr($tmp, array("<b>"=>'', '</b>'=>''));
|
$tmp = strtr($tmp, array("<b>"=>'', '</b>'=>''));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user