Mailer.php
authoredward <edward@roojs.com>
Mon, 26 Mar 2018 08:37:47 +0000 (16:37 +0800)
committeredward <edward@roojs.com>
Mon, 26 Mar 2018 08:37:47 +0000 (16:37 +0800)
Mailer.php

index 32b99b5..284da98 100644 (file)
@@ -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('<?xml encoding="UTF-8">' .$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('<?xml encoding="UTF-8">' .$html);
+        @$dom->loadHTML($html);
         
         $html = $dom->getElementsByTagName('html');
         $head = $dom->getElementsByTagName('head');