Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request PHPMailer#342 from SDKiller/patch-1
Fixed callable call
  • Loading branch information
Synchro committed Jan 2, 2015
2 parents dcf5bf6 + a89724a commit bda4179
Showing 1 changed file with 1 addition and 1 deletion.
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 bda4179

Please sign in to comment.