Skip to content
Snippets Groups Projects
Commit 78b1bdb0 authored by catch's avatar catch
Browse files

Issue #2545988 by alexpott: Remove unnecessary SafeMarkup::checkPlain() from form.inc

parent f3ed9812
No related branches found
No related tags found
No related merge requests found
...@@ -376,7 +376,7 @@ function template_preprocess_textarea(&$variables) { ...@@ -376,7 +376,7 @@ function template_preprocess_textarea(&$variables) {
Element\RenderElement::setAttributes($element, array('form-textarea')); Element\RenderElement::setAttributes($element, array('form-textarea'));
$variables['wrapper_attributes'] = new Attribute(); $variables['wrapper_attributes'] = new Attribute();
$variables['attributes'] = new Attribute($element['#attributes']); $variables['attributes'] = new Attribute($element['#attributes']);
$variables['value'] = SafeMarkup::checkPlain($element['#value']); $variables['value'] = $element['#value'];
$variables['resizable'] = !empty($element['#resizable']) ? $element['#resizable'] : NULL; $variables['resizable'] = !empty($element['#resizable']) ? $element['#resizable'] : NULL;
$variables['required'] = !empty($element['#required']) ? $element['#required'] : NULL; $variables['required'] = !empty($element['#required']) ? $element['#required'] : NULL;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment