|
@@ -2499,7 +2499,10 @@ class AttributeText extends AttributeString
|
|
switch ($this->GetFormat())
|
|
switch ($this->GetFormat())
|
|
{
|
|
{
|
|
case 'html':
|
|
case 'html':
|
|
- $sValue = HTMLSanitizer::Sanitize($sValue);
|
|
|
|
|
|
+ if (($sValue !== null) && ($sValue !== ''))
|
|
|
|
+ {
|
|
|
|
+ $sValue = HTMLSanitizer::Sanitize($sValue);
|
|
|
|
+ }
|
|
break;
|
|
break;
|
|
|
|
|
|
case 'text':
|
|
case 'text':
|