From 14692ac3a3954763e185ae5554f7753a83373656 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Sat, 1 Sep 2007 14:35:19 +0000 Subject: #172194 by ax: html to text was not picking up href values if not being the last argument --- includes/mail.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/mail.inc') 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 tags with the text of link and a footnote. // 'See the Drupal site' becomes // 'See the Drupal site [1]' with the URL included as a footnote. - $pattern = '@(]+?href="([^"]*)">(.+?))@i'; + $pattern = '@(]+?href="([^"]*)"[^>]*?>(.+?))@i'; $string = preg_replace_callback($pattern, '_drupal_html_to_mail_urls', $string); $urls = _drupal_html_to_mail_urls(); $footnotes = ''; -- cgit v1.2.3