html2text non-advanced mode ignore case

make html2text non-advanced mode to ignore case of head, title, style script tags. just in case!
This commit is contained in:
Elan Ruusamäe 2013-05-24 10:09:38 +03:00
parent 7f39eff84b
commit fb3b9be9e4
1 changed files with 1 additions and 1 deletions

View File

@ -2526,7 +2526,7 @@ class PHPMailer {
$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);
}
/**