Index: swfobject_api.module
===================================================================
--- swfobject_api.module	(Revision 182)
+++ swfobject_api.module	(Arbeitskopie)
@@ -135,7 +135,7 @@ function theme_swfobject_api($url, $para
   
   if ($vars) { 
     foreach ($vars as $key => $value) {
-      $html .= " so$id_count.addVariable('$key', '$value');\n";
+      $html .= " so$id_count.addVariable('$key', ". drupal_to_js($value) .");\n";
     }
   }
   
