summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/mail.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/mail.inc b/includes/mail.inc
index ad123fee8..55d2b29a9 100644
--- a/includes/mail.inc
+++ b/includes/mail.inc
@@ -276,7 +276,7 @@ function drupal_html_to_text($string, $allowed_tags = NULL) {
// Replace inline <a> tags with the text of link and a footnote.
// 'See <a href="http://drupal.org">the Drupal site</a>' becomes
// 'See the Drupal site [1]' with the URL included as a footnote.
- $pattern = '@(<a[^>]+?href="([^"]*)">(.+?)</a>)@i';
+ $pattern = '@(<a[^>]+?href="([^"]*)"[^>]*?>(.+?)</a>)@i';
$string = preg_replace_callback($pattern, '_drupal_html_to_mail_urls', $string);
$urls = _drupal_html_to_mail_urls();
$footnotes = '';