Merge pull request #7387 from woothemes/revert-7379-master
Revert "Add code to check if mb_convert_encoding function is exsited the...
This commit is contained in:
commit
a17bd25c96
|
@ -352,8 +352,7 @@ class Emogrifier {
|
||||||
$this->copyCssWithMediaToStyleNode($cssParts, $xmlDocument);
|
$this->copyCssWithMediaToStyleNode($cssParts, $xmlDocument);
|
||||||
|
|
||||||
if ($this->preserveEncoding) {
|
if ($this->preserveEncoding) {
|
||||||
if ( function_exists('mb_convert_encoding') ) { return mb_convert_encoding($xmlDocument->saveHTML(), self::ENCODING, 'HTML-ENTITIES'); }
|
return mb_convert_encoding($xmlDocument->saveHTML(), self::ENCODING, 'HTML-ENTITIES');
|
||||||
else { return $xmlDocument->saveHTML(); }
|
|
||||||
} else {
|
} else {
|
||||||
return $xmlDocument->saveHTML();
|
return $xmlDocument->saveHTML();
|
||||||
}
|
}
|
||||||
|
@ -537,8 +536,7 @@ class Emogrifier {
|
||||||
$bodyWithoutUnprocessableTags = $this->html;
|
$bodyWithoutUnprocessableTags = $this->html;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( function_exists('mb_convert_encoding') ) { return mb_convert_encoding($bodyWithoutUnprocessableTags, 'HTML-ENTITIES', self::ENCODING); }
|
return mb_convert_encoding($bodyWithoutUnprocessableTags, 'HTML-ENTITIES', self::ENCODING);
|
||||||
else { return $bodyWithoutUnprocessableTags; }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue