aboutsummaryrefslogtreecommitdiffstats
path: root/include/html2plain.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/html2plain.php')
-rw-r--r--include/html2plain.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/html2plain.php b/include/html2plain.php
index 69fb5193a..6d580becf 100644
--- a/include/html2plain.php
+++ b/include/html2plain.php
@@ -120,6 +120,10 @@ function collecturls($message) {
function html2plain($html, $wraplength = 75, $compact = false)
{
+ if (!$html) {
+ return '';
+ }
+
$message = str_replace("\r", "", $html);
// mb_convert_encoding() is deprecated