Index: export/views_bonus_export.theme.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/views_bonus/export/views_bonus_export.theme.inc,v retrieving revision 1.10 diff -u -p -r1.10 views_bonus_export.theme.inc --- export/views_bonus_export.theme.inc 20 Jul 2010 12:09:17 -0000 1.10 +++ export/views_bonus_export.theme.inc 1 Feb 2011 15:26:23 -0000 @@ -43,8 +43,10 @@ function template_preprocess_views_bonus // Format row values. foreach ($vars['themed_rows'] as $i => $values) { - foreach ($values as $j => $value) { - $output = decode_entities(strip_tags($value)); + foreach ($values as $j => $output) { + if ($vars['options']['strip_html']) { + $output = decode_entities(strip_tags($output)); + } if ($vars['options']['trim']) { $output = trim($output); } Index: export/views_bonus_plugin_style_export_csv.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/views_bonus/export/views_bonus_plugin_style_export_csv.inc,v retrieving revision 1.11 diff -u -p -r1.11 views_bonus_plugin_style_export_csv.inc --- export/views_bonus_plugin_style_export_csv.inc 20 Jul 2010 12:09:17 -0000 1.11 +++ export/views_bonus_plugin_style_export_csv.inc 1 Feb 2011 15:26:23 -0000 @@ -47,6 +47,10 @@ class views_bonus_plugin_style_export_cs 'default' => TRUE, 'translatable' => FALSE, ); + $options['strip_html'] = array( + 'default' => TRUE, + 'translatable' => FALSE, + ); return $options; } @@ -80,6 +84,11 @@ class views_bonus_plugin_style_export_cs '#default_value' => !empty($this->options['trim']), '#title' => t('Trim whitespace from rendered fields. Can be useful for some themes where output results in extra newlines.'), ); + $form['strip_html'] = array( + '#type' => 'checkbox', + '#default_value' => !empty($this->options['strip_html']), + '#title' => t('Strip HTML from rendered fields, and convert HTML entities to characters.'), + ); $form['header'] = array( '#type' => 'checkbox', '#title' => t('Make first row a list of column headers.'),