public function formatPropertyValue($propertyName, $propertyValue) { $formattedPropertyValue = parent::formatPropertyValue($propertyName, $propertyValue); if ((!isset($this->propertyNames) || array_search($propertyName, $this->propertyNames) !== FALSE) && is_string($formattedPropertyValue)) { $formattedPropertyValue = check_plain($formattedPropertyValue); } return $formattedPropertyValue; }