Revert "Add code to check if mb_convert_encoding function is exsited then can called it for emogrifier lib"

This commit is contained in:
Claudio Sanches 2015-02-12 09:36:12 -02:00
parent 16e14914d8
commit 1845049665
1 changed files with 2 additions and 4 deletions

View File

@ -352,8 +352,7 @@ class Emogrifier {
$this->copyCssWithMediaToStyleNode($cssParts, $xmlDocument);
if ($this->preserveEncoding) {
if ( function_exists('mb_convert_encoding') ) { return mb_convert_encoding($xmlDocument->saveHTML(), self::ENCODING, 'HTML-ENTITIES'); }
else { return $xmlDocument->saveHTML(); }
return mb_convert_encoding($xmlDocument->saveHTML(), self::ENCODING, 'HTML-ENTITIES');
} else {
return $xmlDocument->saveHTML();
}
@ -537,8 +536,7 @@ class Emogrifier {
$bodyWithoutUnprocessableTags = $this->html;
}
if ( function_exists('mb_convert_encoding') ) { return mb_convert_encoding($bodyWithoutUnprocessableTags, 'HTML-ENTITIES', self::ENCODING); }
else { return $bodyWithoutUnprocessableTags; }
return mb_convert_encoding($bodyWithoutUnprocessableTags, 'HTML-ENTITIES', self::ENCODING);
}
/**