| @@ -6,8 +6,9 @@ | ||
| 6 | 6 | * |
| 7 | 7 | * @author Cameron Brooks |
| 8 | 8 | * @author Jaime Prado |
| 9 | 9 | * @author Roman O�ana <ozana@omdesign.cz> |
| 10 | + * @deprecated v4.2.9.1 | |
| 10 | 11 | */ |
| 11 | 12 | if(!class_exists('Emogrifier')) { |
| 12 | 13 | class Emogrifier { |
| 13 | 14 | /** |
| @@ -529,13 +530,9 @@ | ||
| 529 | 530 | } else { |
| 530 | 531 | $bodyWithoutUnprocessableTags = $this->html; |
| 531 | 532 | } |
| 532 | 533 | |
| 533 | - if ( function_exists( 'mb_convert_encoding' ) ) { | |
| 534 | - return mb_convert_encoding( $bodyWithoutUnprocessableTags, 'HTML-ENTITIES', self::ENCODING ); | |
| 535 | - } else { | |
| 536 | - return htmlspecialchars_decode( utf8_decode( htmlentities( $bodyWithoutUnprocessableTags, ENT_COMPAT, self::ENCODING, false ) ) ); | |
| 537 | - } | |
| 534 | + return htmlspecialchars_decode( utf8_decode( htmlentities( $bodyWithoutUnprocessableTags, ENT_COMPAT, self::ENCODING, false ) ) ); | |
| 538 | 535 | } |
| 539 | 536 | |
| 540 | 537 | /** |
| 541 | 538 | * @param array $a |
| @@ -666,12 +663,12 @@ | ||
| 666 | 663 | * @return string |
| 667 | 664 | */ |
| 668 | 665 | private function matchClassAttributes( array $match ) { |
| 669 | 666 | return ( strlen( $match[1] ) ? $match[1] : '*' ) . '[contains(concat(" ",@class," "),concat(" ","' . |
| 670 | - implode( | |
| 671 | - '"," "))][contains(concat(" ",@class," "),concat(" ","', | |
| 672 | - explode( '.', substr( $match[2], 1 ) ) | |
| 673 | - ) . '"," "))]'; | |
| 667 | + implode( | |
| 668 | + '"," "))][contains(concat(" ",@class," "),concat(" ","', | |
| 669 | + explode( '.', substr( $match[2], 1 ) ) | |
| 670 | + ) . '"," "))]'; | |
| 674 | 671 | } |
| 675 | 672 | |
| 676 | 673 | /** |
| 677 | 674 | * @param array $match |
| @@ -791,5 +788,5 @@ | ||
| 791 | 788 | |
| 792 | 789 | return $properties; |
| 793 | 790 | } |
| 794 | 791 | } |
| 795 | -} | |
| 792 | +} | |