diff --git a/core/modules/views/src/Plugin/views/field/FieldPluginBase.php b/core/modules/views/src/Plugin/views/field/FieldPluginBase.php index a6e388c..beb99d8 100644 --- a/core/modules/views/src/Plugin/views/field/FieldPluginBase.php +++ b/core/modules/views/src/Plugin/views/field/FieldPluginBase.php @@ -240,7 +240,7 @@ public function elementType($none_supported = FALSE, $default_empty = FALSE, $in } } if ($this->options['element_type']) { - return SafeMarkup::checkPlain($this->options['element_type']); + return $this->options['element_type']; } if ($default_empty) { @@ -268,7 +268,7 @@ public function elementLabelType($none_supported = FALSE, $default_empty = FALSE } } if ($this->options['element_label_type']) { - return SafeMarkup::checkPlain($this->options['element_label_type']); + return $this->options['element_label_type']; } if ($default_empty) { @@ -288,7 +288,7 @@ public function elementWrapperType($none_supported = FALSE, $default_empty = FAL } } if ($this->options['element_wrapper_type']) { - return SafeMarkup::checkPlain($this->options['element_wrapper_type']); + return $this->options['element_wrapper_type']; } if ($default_empty) { @@ -1103,8 +1103,7 @@ public function preRender(&$values) { } * {@inheritdoc} */ public function render(ResultRow $values) { - $value = $this->getValue($values); - return $this->sanitizeValue($value); + return $this->getValue($values); } /** diff --git a/core/modules/views/views.theme.inc b/core/modules/views/views.theme.inc index 07659f5..fb443d4 100755 --- a/core/modules/views/views.theme.inc +++ b/core/modules/views/views.theme.inc @@ -159,7 +159,7 @@ function template_preprocess_views_view_fields(&$variables) { // Set up the label for the value and the HTML to make it easier // on the template. - $object->label = SafeMarkup::checkPlain($view->field[$id]->label()); + $object->label = $view->field[$id]->label(); $object->label_html = ''; if ($object->label) { $object->label_html .= $object->label;