From c082e1b8ff110a222cc0934a433aecdd4c906d1e Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 19 May 2008 19:25:24 +0000 Subject: - Patch #258192 by dww: drupal_html_to_text() doesn't support . --- includes/mail.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes') diff --git a/includes/mail.inc b/includes/mail.inc index c2394a414..a7db9a287 100644 --- a/includes/mail.inc +++ b/includes/mail.inc @@ -272,8 +272,8 @@ function drupal_html_to_text($string, $allowed_tags = NULL) { $string = _filter_htmlcorrector(filter_xss($string, $allowed_tags)); // Apply inline styles. - $string = preg_replace('!!i', '/', $string); - $string = preg_replace('!!i', '*', $string); + $string = preg_replace('! +)[^>]*)?>!i', '/', $string); + $string = preg_replace('! +)[^>]*)?>!i', '*', $string); // Replace inline tags with the text of link and a footnote. // 'See the Drupal site' becomes -- cgit v1.2.3