Fix for editing HTML content containing html entities: & must be encoded as & as well !!

SVN:trunk[4049]
This commit is contained in:
Denis Flaven
2016-05-10 19:26:02 +00:00
parent 1d3ab23699
commit ccddf1d4f0
2 changed files with 6 additions and 1 deletions

View File

@@ -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;

View File

@@ -2470,6 +2470,10 @@ class AttributeText extends AttributeString
}
}
}
else
{
$sValue = str_replace('&', '&', $sValue);
}
return $sValue;
}