﻿### Eclipse Workspace Patch 1.0
#P View_Bonus_CVS
Index: views_bonus_export.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views_bonus/Attic/views_bonus_export.module,v
retrieving revision 1.1.2.17
diff -u -r1.1.2.17 views_bonus_export.module
--- views_bonus_export.module	8 Jan 2009 03:32:11 -0000	1.1.2.17
+++ views_bonus_export.module	18 Jan 2009 12:36:59 -0000
@@ -229,7 +229,10 @@
   drupal_set_header('Content-Disposition: attachment; filename="view-'. $view->name .'.doc"');
   print '<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body>';
   $table = theme('views_view_table', $view, $nodes, null);
-  $table = preg_replace('/<\/?(a|span) ?.*?>/', '', $table); // strip 'a' and 'span' tags
+  // strip 'img', 'a' and 'span' tags & all css classes (U stands for ungreedy search)
+  $htmlfilters = array('/<\/?(a|span|img) ?.*?>/', 
+                       '/ class="(.*)"/U');
+  $table = preg_replace($htmlfilters, '', $table);
   print $table;
   print "</body></html>";
   module_invoke_all('exit');
