From 8aba3a430b98a8e764c3a054a3941a4aefa6eda4 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 24 May 2005 20:38:00 +0000 Subject: - Patch #23530 by Thox/Robin: removed the wrap="virtual" attribute from textareas. According to Thox this is no longer neccessary. Makes textareas validate as XHTML. --- includes/common.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/common.inc') diff --git a/includes/common.inc b/includes/common.inc index 1c4f1b1b3..429d98522 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -1353,7 +1353,7 @@ function form_textarea($title, $name, $value, $cols, $rows, $description = NULL, } } - return theme('form_element', $title, $pre .''. $post, $description, 'edit-'. $name, $required, _form_get_error($name)); + return theme('form_element', $title, $pre .''. check_plain($value) .''. $post, $description, 'edit-'. $name, $required, _form_get_error($name)); } /** @@ -1984,7 +1984,7 @@ function drupal_add_js($file) { function drupal_implode_autocomplete($array) { $output = array(); foreach ($array as $k => $v) { - $output[] = str_replace('|', '|', $k) .'|'. str_replace('|', '|', $v); + $output[] = str_replace('|', '|', $k) .'|'. str_replace('|', '|', $v); } return implode('||', $output); } -- cgit v1.2.3