* @copyright Since 2013 Ovidiu Cimpean * @license Do not edit, modify or copy this file * * @version Release: 4 */ class NewsletterProCSStoInlineStyle extends NewsletterProEmogrifier { private $np_head_style; public function __construct($html = '', $css = '') { $current_encode = mb_detect_encoding($html, 'UTF-8, ISO-8859-1, ISO-8859-15, HTML-ENTITIES', true); // this will solve the trim last row bug in phpQuery plugin $html = html_entity_decode($html, ENT_COMPAT | ENT_HTML401 | ENT_HTML5, $current_encode); $html = mb_convert_encoding($html, 'UTF-8', $current_encode); if ((bool) pqnp_ini_config('add_style_to_header')) { // grep the heaser style if (preg_match_all('/(?P