Skip to content

Commit

Permalink
Merge pull request Synchro#61 from glensc/html2text-case
Browse files Browse the repository at this point in the history
html2text non-advanced mode ignore case
  • Loading branch information
Synchro committed May 24, 2013
2 parents 7f39eff + fb3b9be commit 64d8952
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion class.phpmailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2526,7 +2526,7 @@ public function html2text($html, $advanced = false) {
$h = new html2text($html);
return $h->get_text();
}
return html_entity_decode(trim(strip_tags(preg_replace('/<(head|title|style|script)[^>]*>.*?<\/\\1>/s', '', $html))), ENT_QUOTES, $this->CharSet);
return html_entity_decode(trim(strip_tags(preg_replace('/<(head|title|style|script)[^>]*>.*?<\/\\1>/si', '', $html))), ENT_QUOTES, $this->CharSet);
}

/**
Expand Down

0 comments on commit 64d8952

Please sign in to comment.