When converting HTML to TEXT, wrap at 78 chars, some mail servers wont accept emails with very long lines

This commit is contained in:
james 2010-03-30 04:01:38 +00:00
parent 8aec6a23e6
commit 3116d8f232

View File

@ -1319,6 +1319,10 @@ function getTextFromHtml($html) {
$text=str_replace("&lt;","<",$text);
$text=str_replace("&gt;",">",$text);
//text version should always wrap at 78 chars, some mail severs wont accept
//mail with very long lines
$text=wordwrap($text,78,"\n",true);
return $text;
}