Get rid of double html parsing during render

[MAILPOET-1797]
This commit is contained in:
Rostislav Wolny
2019-03-05 10:40:41 +01:00
committed by M. Shull
parent 59d960b42f
commit 66ae3edf78
3 changed files with 8 additions and 12 deletions

View File

@ -35,7 +35,6 @@ class CSS {
*/
function inlineCSS($url, $contents=null) {
$html = \pQuery::parseStr($contents);
if (!is_object($html)) {
return false;
}
@ -124,7 +123,7 @@ class CSS {
}
// Let simple_html_dom give us back our HTML with inline CSS!
return (string)$html;
return $html;
}
function parseCSS($text) {