Commit aa384c04 authored by namorke's avatar namorke Committed by Ra Mänd
Browse files

Issue #3117695 by roman.haluska, klausi: Special characters (apostrophe,...

Issue #3117695 by roman.haluska, klausi: Special characters (apostrophe, ampersand) are escaped from FC label translation
parent 741a18b2
......@@ -127,7 +127,7 @@ class FieldCollectionItemEntity extends Entity {
public function translatedInstanceLabel($langcode = NULL) {
if ($info = $this->instanceInfo()) {
if (module_exists('i18n_field')) {
return i18n_string("field:{$this->field_name}:{$info['bundle']}:label", $info['label'], array('langcode' => $langcode));
return i18n_string("field:{$this->field_name}:{$info['bundle']}:label", $info['label'], array('langcode' => $langcode, 'sanitize' => FALSE));
}
return $info['label'];
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment