projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1796616
)
Mailer.php
author
edward
<edward@roojs.com>
Mon, 26 Mar 2018 08:37:13 +0000
(16:37 +0800)
committer
edward
<edward@roojs.com>
Mon, 26 Mar 2018 08:37:13 +0000
(16:37 +0800)
Mailer.php
patch
|
blob
|
history
diff --git
a/Mailer.php
b/Mailer.php
index
8d0be13
..
9daa52a
100644
(file)
--- 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 = new DOMDocument();
// this may raise parse errors as some html may be a component..
- @$dom->loadHTML($html);
+ @$dom->loadHTML(
'<?xml encoding="UTF-8">' .
$html);
$imgs= $dom->getElementsByTagName('img');
foreach ($imgs as $i=>$img) {
$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 = new DOMDocument();
// this may raise parse errors as some html may be a component..
- @$dom->loadHTML($html);
+ @$dom->loadHTML(
'<?xml encoding="UTF-8">' .
$html);
$links = $dom->getElementsByTagName('link');
$lc = array();
foreach ($links as $link) { // duplicate as links is dynamic and we change it..!
$links = $dom->getElementsByTagName('link');
$lc = array();
foreach ($links as $link) { // duplicate as links is dynamic and we change it..!
@@
-456,10
+456,9
@@
class Pman_Core_Mailer {
function htmlbodyInlineCss($html)
{
print_R($html);exit;
function htmlbodyInlineCss($html)
{
print_R($html);exit;
-
$dom = new DOMDocument();
$dom = new DOMDocument();
- @$dom->loadHTML($html);
+ @$dom->loadHTML(
'<?xml encoding="UTF-8">' .
$html);
$html = $dom->getElementsByTagName('html');
$head = $dom->getElementsByTagName('head');
$html = $dom->getElementsByTagName('html');
$head = $dom->getElementsByTagName('head');