From 5b9b2f2959fee06e0752344ab4592c0f191ee947 Mon Sep 17 00:00:00 2001 From: edward Date: Mon, 26 Mar 2018 16:38:04 +0800 Subject: [PATCH] Mailer.php --- Mailer.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Mailer.php b/Mailer.php index 284da982..0fe1eef8 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) { @@ -411,7 +411,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); $links = $dom->getElementsByTagName('link'); $lc = array(); foreach ($links as $link) { // duplicate as links is dynamic and we change it..! @@ -457,7 +457,7 @@ class Pman_Core_Mailer { { $dom = new DOMDocument(); - @$dom->loadHTML($html); + @$dom->loadHTML('' .$html); $html = $dom->getElementsByTagName('html'); $head = $dom->getElementsByTagName('head'); -- 2.39.2