diff --git a/spamspan.js b/spamspan.js
index 1f26b80..f19fa5a 100644
--- a/spamspan.js
+++ b/spamspan.js
@@ -27,7 +27,11 @@ Drupal.behaviors.spamspan = {
             return (n.replace(/: /,"="));
           });
 // Find the anchor text, and remove the round brackets from the start and end
-	    var _anchorText = $("span.t", this).text().replace(/^ \((.*)\)$/, "$1");
+      if ($("span.t", this).find("img").length > 0) {
+        var _anchorText = $("span.t", this).html().replace(/^ ?\((.*)\) ?$/, "$1");
+      } else {
+        var _anchorText = $("span.t", this).text().replace(/^ ?\((.*)\) ?$/, "$1");
+      }
 // Build the mailto URI
   var _mailto = "mailto:" + encodeURIComponent(_mail);
   var _headerstring = _headers.join('&');
