mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
N°931 AttributeSet widget : add charset parameter to htmlentities
This commit is contained in:
@@ -2043,7 +2043,7 @@ EOF
|
||||
|
||||
/** @var \ormSet $value */
|
||||
$sJson = $oAttDef->GetJsonForWidget($value, $aArgs);
|
||||
$sEscapedJson = htmlentities($sJson);
|
||||
$sEscapedJson = htmlentities($sJson, ENT_QUOTES, 'UTF-8');
|
||||
$sSetInputName = "attr_{$sFormPrefix}{$sAttCode}";
|
||||
$sHTMLValue = '<div class="field_input_zone field_input_set"><input id="'.$iId.'" name="'.$sSetInputName.'" type="hidden" value="'.$sEscapedJson.'"></div>'.$sValidationSpan.$sReloadSpan;
|
||||
$sScript = "$('#$iId').set_widget();";
|
||||
|
||||
Reference in New Issue
Block a user