diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-05-19 19:25:24 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-05-19 19:25:24 +0000 |
commit | c082e1b8ff110a222cc0934a433aecdd4c906d1e (patch) | |
tree | 92c8658c9d4272c31035bcdab093889c66f32b6b /includes | |
parent | 21000956a2cad5a65cf39a1d6b518fb5f622b7b1 (diff) | |
download | brdo-c082e1b8ff110a222cc0934a433aecdd4c906d1e.tar.gz brdo-c082e1b8ff110a222cc0934a433aecdd4c906d1e.tar.bz2 |
- Patch #258192 by dww: drupal_html_to_text() doesn't support <strong class='foo'>.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/mail.inc | 4 |
1 files changed, 2 insertions, 2 deletions
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('!</?(em|i)>!i', '/', $string); - $string = preg_replace('!</?(strong|b)>!i', '*', $string); + $string = preg_replace('!</?(em|i)((?> +)[^>]*)?>!i', '/', $string); + $string = preg_replace('!</?(strong|b)((?> +)[^>]*)?>!i', '*', $string); // Replace inline <a> tags with the text of link and a footnote. // 'See <a href="http://drupal.org">the Drupal site</a>' becomes |