--- relatedlinks.module.orig	2009-02-09 02:34:05.000000000 -0600
+++ relatedlinks.module	2009-11-25 01:00:15.915132497 -0600
@@ -772,11 +772,17 @@
   $url_cache = array();
 
   foreach ($links as $link) {
-    if (!in_array($link['url'], $url_cache)) {
+      // kjh: don't load mailto links
+    if (!in_array($link['url'], $url_cache)
+        && !preg_match('/^mailto:/i', $link['url'])) {
       if (empty($link['title'])) {
         // URLs without a title display the URL.
         $link['title'] = $link['url'];
+      } else {
+          // kjh: remove HTML tags in the title
+          $link['title'] = strip_tags($link['title']);
       }
+      
       $url_cache[] = $link['url'];
       $urls[] = '<a href="'. check_url($link['url']) .'">'. check_plain($link['title']) .'</a>';
     }
