--- simplegallery-HEAD/simplegallery.module	2009-08-31 05:26:54.000000000 -0600
+++ /var/www/drupal-6.17/sites/sandbox/modules/simplegallery/simplegallery.module	2010-07-15 08:30:48.826680573 -0600
@@ -15,7 +15,7 @@ function simplegallery_admin() {
     $vocabsarray = taxonomy_get_vocabularies();
     $vocabs = array();
     foreach ($vocabsarray as $key=>$vocab) {
-        $vocabs[$key] = $vocab->name;
+        $vocabs[$key] = check_plain($vocab->name);
     }
 
     $form['simplegallery_vid'] = array(
@@ -215,7 +215,7 @@ function simplegallery_all() {
                 //Support multiple images per node, even though it isn't supposed to :P
                 for($i=0;$i<count($node->{$imagefield});$i++) {
                     if ($node->{$imagefield}[$i]['data']['title'] == "" && $revert)
-                        $imagecaption = $node->title;
+                        $imagecaption = check_plain($node->title);
                     else
                         $imagecaption = $node->{$imagefield}[$i]['data']['title'];
                     
@@ -265,7 +265,7 @@ function simplegallery_sub($tid) {
         $nodes[] = $row->nid;
     }
     
-    drupal_set_title($term->name);
+    drupal_set_title(check_plain($term->name));
     drupal_set_breadcrumb(array(l(t('Home'), NULL), l(t('Gallery'), 'gallery')));
     $rows = array();
     $i = 0;
