function convertStyle($url, $file, $is_url = true)
{
+ $inLineCss = true;
+
if($is_url && !empty($url))
{
$host = parse_url($url);
}
if(preg_match('/^\s<!--\sNOT CONVERT STYLE\s-->\s/', $data)){
- return $data;
+ $inLineCss = false;
}
libxml_use_internal_errors (true);
$data = $doc->saveHTML();
+ if(!$inLineCss){
+ return $data;
+ }
+
$htmldoc = new HTML_CSS_InlineStyle($data);
if(count($this->styleSheets) > 0){
foreach ($this->styleSheets as $styleSheet){