Skip to content

Commit 1def03d

Browse files
committed
Fix regression
1 parent 1f884b8 commit 1def03d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

htdocs/core/lib/functions.lib.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2176,6 +2176,7 @@ function dol_escape_htmltag($stringtoescape, $keepb = 0, $keepn = 0, $noescapeta
21762176
} while ($diff);
21772177
}
21782178

2179+
$tmp = str_ireplace('&quot', '__DOUBLEQUOT', $tmp);
21792180
$tmp = str_ireplace('&lt', '__LESSTAN', $tmp);
21802181
$tmp = str_ireplace('&gt', '__GREATERTHAN', $tmp);
21812182
}
@@ -2203,6 +2204,7 @@ function dol_escape_htmltag($stringtoescape, $keepb = 0, $keepn = 0, $noescapeta
22032204

22042205
$result = str_ireplace('__SIMPLEQUOTE', ''', $result);
22052206

2207+
$result = str_ireplace('__DOUBLEQUOT', '&quot', $result);
22062208
$result = str_ireplace('__LESSTAN', '&lt', $result);
22072209
$result = str_ireplace('__GREATERTHAN', '&gt', $result);
22082210

@@ -8526,7 +8528,8 @@ function dol_htmlwithnojs($stringtoencode, $nouseofiframesandbox = 0, $check = '
85268528
// See options at https://tidy.sourceforge.net/docs/quickref.html
85278529
$config = array(
85288530
'clean' => false,
8529-
'quote-marks' => false, // do not replace " that are used for real text content (not a string symbol for html attribute) into "
8531+
// 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 "
8532+
'quote-marks' => false,
85308533
'doctype' => 'strict',
85318534
'show-body-only' => true,
85328535
"indent-attributes" => false,

0 commit comments

Comments
 (0)