--- old/imagefield_gallery_lightbox2.module	2008-05-04 19:09:20.000000000 +0300
+++ imagefield_gallery_lightbox2.module	2008-07-11 16:26:36.000000000 +0300
@@ -376,7 +376,7 @@ function theme_imagefield_gallery_lightb
           $imagecache_path = base_path() . file_directory_path() .'/imagecache/'. $preview .'/'. $file['filepath'];
         }
         $output .= '<div class="'. $node->type .'_image_field_thumbnail">';
-        $output .= '<a href="'. $imagecache_path .'" rel="lightbox['. $node->nid .']" title="'. $images[$i]['title'] .'">';
+        $output .= '<a href="'. $imagecache_path .'" rel="lightbox['. $node->nid .']" title="'. check_plain($images[$i]['title']) .'">';
         if ($thumbnail == '_original') {
           $output .= theme('image', $file['filepath'], $images[$i]['alt'], $images[$i]['title']);
         }
