From 378527adf666d18b88c51df993a2635f2b2ff0d6 Mon Sep 17 00:00:00 2001 From: edward Date: Mon, 26 Mar 2018 16:37:47 +0800 Subject: [PATCH] Mailer.php --- Mailer.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Mailer.php b/Mailer.php index 32b99b5f..284da982 100644 --- a/Mailer.php +++ b/Mailer.php @@ -380,7 +380,7 @@ class Pman_Core_Mailer { { $dom = new DOMDocument(); // this may raise parse errors as some html may be a component.. - @$dom->loadHTML('' .$html); + @$dom->loadHTML($html); $imgs= $dom->getElementsByTagName('img'); foreach ($imgs as $i=>$img) { @@ -455,10 +455,9 @@ class Pman_Core_Mailer { function htmlbodyInlineCss($html) { - print_R($html);exit; $dom = new DOMDocument(); - @$dom->loadHTML('' .$html); + @$dom->loadHTML($html); $html = $dom->getElementsByTagName('html'); $head = $dom->getElementsByTagName('head'); -- 2.39.2