forked from science-ation/science-ation
When converting HTML to TEXT, wrap at 78 chars, some mail servers wont accept emails with very long lines
This commit is contained in:
parent
8aec6a23e6
commit
3116d8f232
@ -1319,6 +1319,10 @@ function getTextFromHtml($html) {
|
||||
$text=str_replace("<","<",$text);
|
||||
$text=str_replace(">",">",$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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user