mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Fix for editing HTML content containing html entities: & must be encoded as & as well !!
SVN:trunk[4049]
This commit is contained in:
@@ -1815,7 +1815,8 @@ EOF
|
||||
break;
|
||||
|
||||
case 'HTML':
|
||||
$oWidget = new UIHTMLEditorWidget($iId, $oAttDef, $sNameSuffix, $sFieldPrefix, $sHelpText, $sValidationSpan.$sReloadSpan, $value, $bMandatory);
|
||||
$sEditValue = $oAttDef->GetEditValue($value);
|
||||
$oWidget = new UIHTMLEditorWidget($iId, $oAttDef, $sNameSuffix, $sFieldPrefix, $sHelpText, $sValidationSpan.$sReloadSpan, $sEditValue, $bMandatory);
|
||||
$sHTMLValue = $oWidget->Display($oPage, $aArgs);
|
||||
break;
|
||||
|
||||
|
||||
@@ -2470,6 +2470,10 @@ class AttributeText extends AttributeString
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$sValue = str_replace('&', '&', $sValue);
|
||||
}
|
||||
return $sValue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user