diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-09-01 14:35:19 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-09-01 14:35:19 +0000 |
commit | 14692ac3a3954763e185ae5554f7753a83373656 (patch) | |
tree | 9c78aa44ad867a8d8d4296b64b4d5c0f9eca0296 /includes/mail.inc | |
parent | 0fd16236efd4eca6e229e6e6a4d06ba488aa06e1 (diff) | |
download | brdo-14692ac3a3954763e185ae5554f7753a83373656.tar.gz brdo-14692ac3a3954763e185ae5554f7753a83373656.tar.bz2 |
#172194 by ax: html to text was not picking up href values if not being the last argument
Diffstat (limited to 'includes/mail.inc')
-rw-r--r-- | includes/mail.inc | 2 |
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 = ''; |