mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 09:38:23 +01:00
Fix regression
This commit is contained in:
committed by
Laurent Destailleur
parent
1f884b84ce
commit
1def03d66f
@@ -2176,6 +2176,7 @@ function dol_escape_htmltag($stringtoescape, $keepb = 0, $keepn = 0, $noescapeta
|
||||
} while ($diff);
|
||||
}
|
||||
|
||||
$tmp = str_ireplace('"', '__DOUBLEQUOT', $tmp);
|
||||
$tmp = str_ireplace('<', '__LESSTAN', $tmp);
|
||||
$tmp = str_ireplace('>', '__GREATERTHAN', $tmp);
|
||||
}
|
||||
@@ -2203,6 +2204,7 @@ function dol_escape_htmltag($stringtoescape, $keepb = 0, $keepn = 0, $noescapeta
|
||||
|
||||
$result = str_ireplace('__SIMPLEQUOTE', ''', $result);
|
||||
|
||||
$result = str_ireplace('__DOUBLEQUOT', '"', $result);
|
||||
$result = str_ireplace('__LESSTAN', '<', $result);
|
||||
$result = str_ireplace('__GREATERTHAN', '>', $result);
|
||||
|
||||
@@ -8526,7 +8528,8 @@ function dol_htmlwithnojs($stringtoencode, $nouseofiframesandbox = 0, $check = '
|
||||
// See options at https://tidy.sourceforge.net/docs/quickref.html
|
||||
$config = array(
|
||||
'clean' => false,
|
||||
'quote-marks' => false, // do not replace " that are used for real text content (not a string symbol for html attribute) into "
|
||||
// Best will be to set 'quote-marks' to false to not replace " that are used for real text content (not a string symbol for html attribute) into "
|
||||
'quote-marks' => false,
|
||||
'doctype' => 'strict',
|
||||
'show-body-only' => true,
|
||||
"indent-attributes" => false,
|
||||
|
||||
Reference in New Issue
Block a user