diff --git a/components/textarea.inc b/components/textarea.inc index 128643d..7dc9fbf 100644 --- a/components/textarea.inc +++ b/components/textarea.inc @@ -147,7 +147,7 @@ function _webform_display_textarea($component, $value, $format = 'html') { * Format the output of data for this component. */ function theme_webform_display_textarea($element) { - $output = $element['#format'] == 'html' ? str_replace("\n", '
', check_plain($element['#value'])) : $element['#value']; + $output = $element['#format'] == 'html' ? nl2br(check_plain($element['#value'])) : $element['#value']; if (drupal_strlen($output) > 80) { $output = ($element['#format'] == 'html') ? '
' . $output . '
' : $output; }