Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/PHPMailer/PHPMailer
Browse files Browse the repository at this point in the history
  • Loading branch information
Synchro committed Jan 9, 2015
2 parents 4309101 + bda4179 commit 34b33d9
Show file tree
Hide file tree
Showing 3 changed files with 542 additions and 250 deletions.
2 changes: 1 addition & 1 deletion class.phpmailer.php
Expand Up @@ -2982,7 +2982,7 @@ public function msgHTML($message, $basedir = '', $advanced = false)
public function html2text($html, $advanced = false)
{
if (is_callable($advanced)) {
return $advanced($html);
return call_user_func($advanced, $html);
}
return html_entity_decode(
trim(strip_tags(preg_replace('/<(head|title|style|script)[^>]*>.*?<\/\\1>/si', '', $html))),
Expand Down

0 comments on commit 34b33d9

Please sign in to comment.