--- sharethis.module	Tue Mar 11 01:10:49 2008
+++ sharethis.module.modified	Wed May 28 12:02:38 2008
@@ -129,7 +129,7 @@
             // customized for pages with node->path specified
             $node->content['sharethis_sharethis_this'] = array(
               '#value' => "<script language='javascript' type='text/javascript'>
-              SHARETHIS.addEntry({url: '".$base_url. "/".$node->path."', title: '".$node->title."'}, {button:true} );
+              SHARETHIS.addEntry({url: '".$base_url. "/".$node->path."', title: '".check_plain($node->title)."'}, {button:true} );
                 </script>",
              '#weight' => variable_get('sharethis_sharethis_weight', 0)
             );
@@ -139,7 +139,7 @@
             // using the node id for the default display of nodes without a custom path
             $node->content['sharethis_sharethis_this'] = array(
               '#value' => "<script language='javascript' type='text/javascript'>
-              SHARETHIS.addEntry({url: '".$base_url. "/node/". $node->nid."', title: '".$node->title."'}, {button:true} );
+              SHARETHIS.addEntry({url: '".$base_url. "/node/". $node->nid."', title: '".check_plain($node->title)."'}, {button:true} );
                 </script>",
               '#weight' => variable_get('sharethis_sharethis_weight', 0)
             );
@@ -172,7 +172,7 @@
               // customized for pages with node->path specified
               $links['sharethis_sharethis_this'] = array(
                 'title' => "<script language='javascript' type='text/javascript'>
-                SHARETHIS.addEntry({url: '".$base_url. "/".$node->path."', title: '".$node->title."'}, {button:true} );
+                SHARETHIS.addEntry({url: '".$base_url. "/".$node->path."', title: '".check_plain($node->title)."'}, {button:true} );
                   </script>",
                 'html' => TRUE,
                 'attributes' => array('id' => 'sharethis_'.$node->nid)
@@ -183,7 +183,7 @@
               // using the node id for the default display of nodes without a custom path
               $links['sharethis_sharethis_this'] = array(
                 'title' => "<script language='javascript' type='text/javascript'>
-                SHARETHIS.addEntry({url: '".$base_url. "/node/". $node->nid."', title: '".$node->title."'}, {button:true} );
+                SHARETHIS.addEntry({url: '".$base_url. "/node/". $node->nid."', title: '".check_plain($node->title)."'}, {button:true} );
                   </script>",
                 'html' => TRUE,
                 'attributes' => array('id' => 'sharethis_'.$node->nid)
