diff --git a/include/html2text.php b/include/html2text.php index c4499761467e9d8a100dd9fb2302644cafb9bf2f..48b0b3ee1689b44592347e1955dad086904baa9f 100644 --- a/include/html2text.php +++ b/include/html2text.php @@ -201,7 +201,7 @@ class HtmlInlineElement { case 'normal': default: if ($after_block) $more = ltrim($more); - $more = preg_replace('/\s+/m', ' ', $more); + $more = preg_replace('/[ \r\n\t\f]+/mu', ' ', $more); } } elseif ($c instanceof HtmlInlineElement) {